Skip to content

fix(pip-audit): keep index-url locks hashed and reject symlink parents - #1051

Open
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/bc-9e735bff-0cbd-4bb6-abcc-b5dad2b94830-fc67
Open

fix(pip-audit): keep index-url locks hashed and reject symlink parents#1051
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/bc-9e735bff-0cbd-4bb6-abcc-b5dad2b94830-fc67

Conversation

@cursor

@cursor cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Buyer-visible gap

#969 at a2f3a7ef still sends a complete hashed lock that only adds --index-url back through pip's resolver. That recreates the #961 ResolutionImpossible false vulnerability. A presented path whose intermediate parent is a directory symlink also lacked a fail-closed guard (CWE-22 / CWE-59).

What to do next

Land this successor instead of merging #969 at a2f3a7ef. After exact-head required checks and a non-author current-head review succeed, merge this branch. Do not merge #969 in parallel.

Bounded change

  • Treat resolver configuration (--index-url, --extra-index-url=...) as non-package lines so an otherwise complete SHA-256 lock still gets pip-audit --disable-pip.
  • Keep -r / -c / -e includes on the resolver path.
  • Reject a presented requirements path whose parent chain is a symlink or whose resolved target leaves the audit root.
  • Keep the required Strix installer on --require-hashes --no-deps with no lock change and no review-agent credential change.

Verification

Local exact-tree evidence: 1146 passed, scripts/ci statement/branch coverage 100%, interrogate 100%.

Refs #969, #961, #952.

Open in Web View Automation 

Audit complete SHA-256 locks with --disable-pip so --index-url stays
configuration, -r includes do not earn resolver bypass, and
directory-symlink parents fail closed.
@seonghobae
seonghobae force-pushed the cursor/bc-9e735bff-0cbd-4bb6-abcc-b5dad2b94830-fc67 branch from 3940cbd to 9daa0b1 Compare August 17, 2026 00:57
@seonghobae
seonghobae marked this pull request as ready for review August 17, 2026 00:57
@seonghobae
seonghobae enabled auto-merge (squash) August 17, 2026 00:57
@cursor

cursor Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

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