Skip to content

fix(deps): require curl_cffi>=0.15.0 (GHSA-qw2m-4pqf-rmpp) - #103

Open
axsddlr wants to merge 1 commit into
jackwener:mainfrom
axsddlr:fix/curl-cffi-ghsa
Open

axsddlr wants to merge 1 commit into
jackwener:mainfrom
axsddlr:fix/curl-cffi-ghsa

Conversation

@axsddlr

@axsddlr axsddlr commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #100.

pyproject.toml allowed any curl_cffi>=0.7, and uv.lock resolved 0.14.0 — so both a fresh pip install and 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.

before after
pyproject.toml curl_cffi>=0.7 curl_cffi>=0.15.0
uv.lock 0.14.0 0.17.0

0.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:

Session(impersonate='chrome')          -> OK
GET  /  headers, params, timeout       -> 200
POST /  headers, data, timeout         -> 403 (expected without auth; proves data= accepted)

get/post still accept headers, data, params and timeout (their signatures are **kwargs in 0.17, so checking parameter names is misleading — the live calls above are the real check).

Regression guard

tests/test_curl_cffi_floor.py asserts 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.toml as text rather than with tomllib, because tomllib is 3.11+ while this project supports 3.10 — and a dependency guard must not add a dependency.

Results

ruff      clean (0.15.4)
mypy      clean (1.14.1)
pytest    244 passed   on Python 3.10 and 3.12 (Linux)

Scope: 1 commit, 3 files (pyproject.toml, uv.lock, the new guard test). No unrelated changes.

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.

This branch has not been deployed

No deployments
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.

curl_cffi>=0.7 floor and 0.14.0 lock allow GHSA-qw2m-4pqf-rmpp (fixed in 0.15.0)

1 participant