Skip to content

Harden source URL and archive parsing - #612

Merged
alecthomas merged 1 commit into
masterfrom
aat/fix-dx-35
Aug 13, 2026
Merged

Harden source URL and archive parsing#612
alecthomas merged 1 commit into
masterfrom
aat/fix-dx-35

Conversation

@alecthomas

@alecthomas alecthomas commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Fixes DX-35.

Rejects env:// paths that escape the environment root, prevents regular tar entries with stray link names from being converted into symlinks, and restricts private GitHub release detection to the real github.com host. These checks prevent out-of-root manifest loading and preserve archive contents and source-selection behavior.

Adds focused regressions plus an end-to-end archive extraction test for the security-sensitive behavior, and documents that security fixes require integration coverage.

@alecthomas alecthomas changed the title Harden environment source and archive parsing Harden source URL and archive parsing Aug 13, 2026
Reject env source paths that escape the environment root, use exact tar type matching so regular files cannot be mistaken for links, and require the real github.com host for release URLs. Add regression and integration coverage so these security-sensitive behaviors remain enforced.

Co-authored-by: Codex <noreply@openai.com>
@alecthomas
alecthomas merged commit 8c02973 into master Aug 13, 2026
8 checks passed
@alecthomas
alecthomas deleted the aat/fix-dx-35 branch August 13, 2026 03:56
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