-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Harden command registration path handling #3088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mnriem
merged 15 commits into
github:main
from
mnriem:mnriem-fix-command-path-traversal
Jun 22, 2026
+295
−7
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3beeb69
fix: validate command 'file' field against path traversal in registrar
mnriem b2e71f5
test/fix: address review — robust absolute-path test and tolerant reads
mnriem 639150f
test: rename traversal fixtures to avoid CodeQL secret-storage false …
mnriem 3d5f039
fix: reject Windows drive-relative 'file' values in traversal guards
mnriem 8041cdd
fix: use anchor under both path flavors so POSIX-absolute is rejected…
mnriem 364535c
fix: validate command 'file' field against path traversal in registrar
mnriem e6acae8
test/fix: address review — robust absolute-path test and tolerant reads
mnriem 1e9956b
test: rename traversal fixtures to avoid CodeQL secret-storage false …
mnriem b84ea66
fix: reject Windows drive-relative 'file' values in traversal guards
mnriem 92daad6
fix: use anchor under both path flavors so POSIX-absolute is rejected…
mnriem 0a61398
Merge commit '8041cddb3a2039dd4d81229e0888e51d6813487c' into mnriem-f…
mnriem c4855b4
refactor: harden register_commands inputs and tighten manifest 'file'…
mnriem 7b9a113
refactor: align runtime '..' policy, correct comment, dedupe test helper
mnriem 85246cc
Extract shared path-safety policy and warn on unreadable command files
mnriem 46aaeac
Retrigger CI
mnriem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.