Repository navigation
Conversation
Closes jackwener#100. pyproject.toml allowed any curl_cffi>=0.7 and uv.lock resolved 0.14.0, so a fresh install and the lockfile both pull in a version affected by GHSA-qw2m-4pqf-rmpp (CVE-2026-33752, High): redirect-based SSRF that can reach internal addresses while bypassing TLS impersonation. Raise the floor to 0.15.0 (first patched) and relock to 0.17.0. Verified the upgrade does not break our HTTP usage: Session(impersonate=...) and get/post with headers/data/params/timeout all still work against the live endpoint; 244 passed on 3.10 and 3.12. tests/test_curl_cffi_floor.py asserts both the declared floor and the resolved version, so relaxing the pin fails a test. It parses the TOML as text because tomllib is 3.11+ while this project supports 3.10.
axsddlr
force-pushed
the
fix/curl-cffi-ghsa
branch
from
October 31, 2026 10:30
425727f to
565914e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #100.
pyproject.tomlallowed anycurl_cffi>=0.7, anduv.lockresolved 0.14.0 — so both a freshpip installand the default lockfile pull in a version affected by GHSA-qw2m-4pqf-rmpp (CVE-2026-33752, High): a redirect-based SSRF that can reach internal addresses while bypassing TLS impersonation.pyproject.tomlcurl_cffi>=0.7curl_cffi>=0.15.0uv.lock0.15.0 is the first patched release; 0.17.0 is current.
Verified the upgrade doesn't break our HTTP usage
A security bump is only worth it if the tool still works, so I exercised the exact call shapes the client uses:
get/poststill acceptheaders,data,paramsandtimeout(their signatures are**kwargsin 0.17, so checking parameter names is misleading — the live calls above are the real check).Regression guard
tests/test_curl_cffi_floor.pyasserts both the declared floor and the version actually resolved in the environment, so relaxing the pin again fails a test instead of silently shipping a vulnerable dependency.It parses
pyproject.tomlas text rather than withtomllib, becausetomllibis 3.11+ while this project supports 3.10 — and a dependency guard must not add a dependency.Results
Scope: 1 commit, 3 files (
pyproject.toml,uv.lock, the new guard test). No unrelated changes.