Skip to content

fix(deps): bump soupsieve past GHSA-4j63-6c4x-wfg4 and GHSA-mmhr-3c5m-f64f - #51585

Merged
devin-ai-integration[bot] merged 2 commits into
mainfrom
litellm_bump_soupsieve
Nov 13, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
mainfrom
litellm_bump_soupsieve

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

This turns the OSV security scan green again on main and on every open PR, which all went red today after two advisories were published against the HTML parsing library our lockfile pinned. Newer Python versions now get the fixed release, and Python 3.10 gets a dated ignore that expires on 2027-02-01, the same as the other 3.10-only entries

Details

Link to Devin session: https://app.devin.ai/sessions/9eecea2d470e477eb982205a43df083a
Open in Devin Desktop: https://app.devin.ai/desktop/session/9eecea2d470e477eb982205a43df083a?variant=devin
Requested by: @mateo-berri

TLDR

Problem this solves:

How it solves it:

  • Constraint raised to soupsieve 2.10, which fixes GHSA-4j63-6c4x-wfg4
  • Python 3.11.5 and newer resolve soupsieve 4.1, which fixes both
  • GHSA-mmhr-3c5m-f64f ignored for older Pythons until 2027-02-01

Pre-Submission checklist

  • My PR's scope is as isolated as possible; it only solves 1 specific problem

Screenshots / Proof of Fix

E2E exception at 9fe7ed0. Scope is a lockfile and scanner config change only. soupsieve is only pulled in through beautifulsoup4 in the ci dependency group, used by tests/code_coverage_tests/bedrock_pricing.py, and no runtime litellm code imports either one

The failing run is main's scheduled run https://github.com/BerriAI/litellm/actions/runs/43379524862, which reported

| https://osv.dev/GHSA-4j63-6c4x-wfg4 | 6.3 | PyPI | soupsieve | 2.9.2 | 2.10.0 | uv.lock |
| https://osv.dev/GHSA-mmhr-3c5m-f64f | 7.5 | PyPI | soupsieve | 2.9.2 | 4.0.0  | uv.lock |

At this branch, osv-scanner v2.3.8 (checksum verified like the workflow does) run with the workflow's exact command

osv-scanner scan source --config .github/osv-scanner.toml -L uv.lock \
  -L litellm/ui/litellm-dashboard/package-lock.json -L litellm/vscode-extension/package-lock.json
Filtered 7 vulnerabilities from output
No issues found
exit code 0

The lock change only swaps soupsieve 2.9.2 for 2.10 and 4.1. BeautifulSoup still works with 4.1 on Python 3.12

$ uv run python -c "import bs4; print(bs4.BeautifulSoup('<p class=a>x</p>','html.parser').select('p.a'))"
[<p class="a">x</p>]
soupsieve 4.1

Type

🚄 Infrastructure

Caveats (if any)

Low

mateo-berri and others added 2 commits November 13, 2026 07:42
…-f64f

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team November 13, 2026 07:53
@veria-ai

veria-ai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@codspeed

codspeed Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 2 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 43 untouched benchmarks


Comparing litellm_bump_soupsieve (9fe7ed0) with main (c5843a8)

Open in CodSpeed

@devin-ai-integration
devin-ai-integration Bot enabled auto-merge (squash) November 13, 2026 08:28
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge with no actionable issues found.

Summary

Raises the soupsieve floor to 2.10 and locks 4.1 on Python 3.11.5 and newer. Adds an exception for GHSA-mmhr-3c5m-f64f that expires on 2027-02-01.

devin-ai-integration[bot] documents that older supported Python versions retain 2.10 because the fixed release requires Python 3.11.5. This disclosure was not treated as human approval. The checked callers do not use the affected CSS selector path.

No actionable issues were found. This review checked source and dependency paths without running tests.

  • Python versions now resolve to the soupsieve release available for their interpreter.

Reviews (1) · Last reviewed commit: "docs(deps): clarify BeautifulSoup depend..." · Reviewed by Greptile

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devin-ai-integration
devin-ai-integration Bot merged commit 7679435 into main Nov 13, 2026
330 of 342 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the litellm_bump_soupsieve branch November 13, 2026 08:35
mateo-berri pushed a commit to mika-lt/litellm that referenced this pull request Nov 17, 2026
…-> 2.10 and 4.1 on lts/1.108.x

Follows main's BerriAI#51712 and BerriAI#51585. The opentelemetry pins move to 1.45.2 and 0.66b2, the dnspython and tornado floors on Python 3.11+ move to the fixed versions, and soupsieve resolves 4.1 on Python 3.11.5+ and 2.10 below it. The ignore list gains the advisories that have no fix on Python 3.10 or below 3.11.5, with the same expiry as the other 3.10 entries on this line.
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