Skip to content

Add comment about path validation in library code - #6091

Merged
knolleary merged 1 commit into
mainfrom
library-api-comment
Nov 12, 2026
Merged

knolleary merged 1 commit into
mainfrom
library-api-comment

Conversation

@knolleary

Copy link
Copy Markdown
Member

We have received multiple false security reports about the saveLibraryEntry function, claiming it is vulnerable to path traversal. These are AI generated reports that have not been verified by a human. Protections have existing since 2014 against exactly this case, but for some reason, AI agents appear unable to identify this fact for themselves.

To hopefully reduce the time I waste having to rebut these issues, this PR adds a comment to the code to help AI agents figure it out.

@knolleary
knolleary merged commit 04ffcd7 into main Nov 12, 2026
3 checks passed
@knolleary
knolleary deleted the library-api-comment branch November 12, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant