Skip to content

fix: sync structural local directory CodeQL fix into dev - #2336

Merged
numnx merged 1 commit into
devfrom
sync/dev-local-directory-url
Jul 6, 2026
Merged

fix: sync structural local directory CodeQL fix into dev#2336
numnx merged 1 commit into
devfrom
sync/dev-local-directory-url

Conversation

@numnx

@numnx numnx commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Syncs the structural local-directory CodeQL fix into dev after the release branch moved from string-path filesystem calls to validated file:// URL sinks.

What Changed

  • Converts the two validated local-directory filesystem operations to use pathToFileURL(safePath) after canonical allow-list validation.
  • Keeps all traversal, outside-root, symlink, file-path, and sanitized-error behavior unchanged.

Validation

pnpm exec vitest run tests/backend/server/local-directory-routes.test.ts
pnpm run lint
git diff --check

@numnx
numnx merged commit 9fe3830 into dev Jul 6, 2026
6 checks passed
@numnx
numnx deleted the sync/dev-local-directory-url branch July 6, 2026 15:52
@numnx numnx mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant