Skip to content

Reject symlinked package directories during wheel install - #56

Closed
zanieb wants to merge 1 commit into
mainfrom
zb/bughunt100/004-wheel-symlink-write
Closed

zanieb wants to merge 1 commit into
mainfrom
zb/bughunt100/004-wheel-symlink-write

Conversation

@zanieb

@zanieb zanieb commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

When a package directory in site-packages or a final .data destination is already a symlink, installing an otherwise normal wheel can follow it and write the payload outside the environment. Reject existing symlinked directories and replace symlinked destination files without following them.

See the existing environment-boundary protection.

@zaniebot
zaniebot force-pushed the zb/bughunt100/004-wheel-symlink-write branch 3 times, most recently from fbea7f2 to 0833f72 Compare July 16, 2026 07:30
@woodruffw

Copy link
Copy Markdown
Member

astral-sh#21569

@woodruffw woodruffw closed this Sep 9, 2026
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.

2 participants