Skip to content

chore(deps): limit apidocs to Python 3.11.5+ to clear soupsieve CVEs - #42

Merged
stephen-masters merged 1 commit into
mainfrom
chore/soupsieve-cves
Nov 14, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
chore/soupsieve-cves

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Why

Trivy fails on every PR (first seen on #41, the ruff bump) with CVE-2026-126190 and CVE-2026-126191 in soupsieve, which furo pulls in through beautifulsoup4 (apidocs extra only — not a runtime dependency of the library).

The lock held two soupsieve versions: 3.0 for Python ≥3.11 and 2.10 for 3.10. The fix (4.0.1) requires Python ≥3.11.5 and the 2.x line is unpatched, so no lock that resolves the docs extra for 3.10 can pass.

What

  • Mark every apidocs dependency python_full_version >= '3.11.5' and floor soupsieve>=4.0.1 there. The library itself still supports 3.10; both docs workflows run on 3.12.
  • Relock: soupsieve is now only 4.1.1; the 3.10-only sphinx/docutils/myst duplicates drop out.
  • Note in CONTRIBUTING that apidocs is skipped on 3.10.

Checks

  • trivy fs --severity HIGH,CRITICAL on the lock: 0 findings
  • uv lock --check passes
  • sphinx-build -W on Python 3.12 with soupsieve 4.1.1: clean
  • pytest (539 passed) and mypy clean

After this merges, @dependabot rebase on #41 should turn its Trivy check green.

🤖 Generated with Claude Code

Trivy flags CVE-2026-126190 and CVE-2026-126191 in soupsieve, which furo
pulls in through beautifulsoup4. The fixes (4.0.1) need Python 3.11.5,
and the 2.x line uv kept for Python 3.10 is unpatched, so the lock could
not be made clean while the docs extra resolved for 3.10. Mark the
apidocs extra for 3.11.5 and later and floor soupsieve at 4.0.1. The
library still supports 3.10; both docs workflows run on 3.12.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stephen-masters
stephen-masters merged commit 483935a into main Nov 14, 2026
12 checks passed
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