Skip to content

chore: fix internal helper script for tools splitting#94

Merged
jkowalleck merged 1 commit intomainfrom
chore/fix-helper-tools-split
Feb 19, 2026
Merged

chore: fix internal helper script for tools splitting#94
jkowalleck merged 1 commit intomainfrom
chore/fix-helper-tools-split

Conversation

@jkowalleck
Copy link
Copy Markdown
Member

@jkowalleck jkowalleck commented Feb 19, 2026

FIX: fixed the internal helper script for tools splitting. and already applied it - which lead to some JSON whitespace changes.

SEC: Addressed a path‑traversal vulnerability where filenames were derived from untrusted input. The fix now uses Path(...).name to ensure only the basename is used. Reported by user @sonuoffsec

@jkowalleck jkowalleck requested a review from a team as a code owner February 19, 2026 10:22
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the chore/fix-helper-tools-split branch from e6ccded to 9f42fab Compare February 19, 2026 10:24
@jkowalleck jkowalleck merged commit d1becdf into main Feb 19, 2026
3 checks passed
@jkowalleck jkowalleck deleted the chore/fix-helper-tools-split branch February 19, 2026 10:29
from_file = t.get('_fromFile')
name = t['name']
return f'{id_}.json' if id_ \
return f'{Path(from_file).name}' if from_file \
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a path‑traversal vulnerability in filename handling by using Path(...).name. Reported by user @sonuoffsec

@jkowalleck jkowalleck changed the title chore: fix helper script for tools splitting chore: fix internal helper script for tools splitting Feb 19, 2026
@jkowalleck jkowalleck added bug Something isn't working chore labels Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant