Skip to content

fix(runtime): secure file writes through symlinked parents - #411

Open
phall1 wants to merge 3 commits into
vercel-labs:mainfrom
phall1:fix/symlink-safe-file-write
Open

fix(runtime): secure file writes through symlinked parents#411
phall1 wants to merge 3 commits into
vercel-labs:mainfrom
phall1:fix/symlink-safe-file-write

Conversation

@phall1

@phall1 phall1 commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • permit file writes through an existing symlinked parent directory
  • keep the final destination component non-following and reject directory-like targets
  • perform atomic replacement relative to an opened parent handle to narrow path substitution races
  • cover symlink parents, final-component attacks, and destination types in storage-tier tests

The branch is rebased onto current main. The implementation and storage-tier tests were independently reviewed before publication.

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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