Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

pypa/wheel
main @ 60cfdda
3
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
src/wheel/_commands/convert.py: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Writing a wheel file to a path derived from archive metadata (name/version) without validating the destination parent allows arbitrary file write outside the intended directory.
Path Traversal: Performing chmod on a path derived from an archive entry filename without using the safe path returned by extract() enables arbitrary file permission changes via traversal.
ReDoS: The WHEEL_INFO_RE regex used to match untrusted filenames can cause catastrophic backtracking, leading to CPU exhaustion.