Skip to content

prevent path traversal#728

Merged
marccampbell merged 1 commit into
mainfrom
prevent-path-traversal
May 18, 2026
Merged

prevent path traversal#728
marccampbell merged 1 commit into
mainfrom
prevent-path-traversal

Conversation

@marccampbell
Copy link
Copy Markdown
Member

Save accepts paths from release.Config and writes each spec by passing spec.Path directly to filepath.Join. If a release contains an absolute path or path components like ../, filepath.Join will resolve outside dstDir and WriteFile/Mkdir can create or overwrite files elsewhere on the caller's filesystem. The current tests only cover ordinary relative paths, so this escape path is not constrained by intended behavior

@marccampbell marccampbell merged commit 7dd6e8b into main May 18, 2026
6 checks passed
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.

3 participants