Files
LocalAI/core/services
Ettore Di Giacinto 2009506233 fix(addons): read the loopback port file through os.Root
The persisted port file was read with a path built from the add-on
root, which gosec reports as a file inclusion through a variable. Open
it through os.Root so the name cannot leave the root, even by a
symbolic link, and require a regular file with no group or other
access. A looser file now fails closed instead of being trusted.

Assisted-by: Claude Code:claude-sonnet-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-10-20 21:40:01 +00:00
..
2026-03-30 00:47:27 +02:00