Skip to content

build(deps): bump langgraph and tornado and add dated scan ignores to clear osv-scan and image-scan - #48302

Merged
mateo-berri merged 13 commits into
mainfrom
litellm_osv_filelock_windows_advisories
Oct 29, 2026
Merged

mateo-berri merged 13 commits into
mainfrom
litellm_osv_filelock_windows_advisories

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

osv-scan has been red on main since the pillow override for Python 3.10 expired on 2026-10-27, and fourteen more filelock, langgraph and tornado advisories came out on 2026-10-28. This bumps langgraph and, on Python 3.11+, tornado, and adds dated ignores where no fix fits the lock, so the scan is green again

A grype rule scoped to filelock 3.32.7 clears the same High from image-scan

Details

TLDR

Problem this solves:

How it solves it:

  • Bumps langgraph to 1.2.17, langgraph-checkpoint to 4.3.0 and langgraph-sdk to 0.4.9 in the ci group, past GHSA-3fx2-cqw9-xr3c, and adds tornado>=6.6 and dnspython>=2.9.0 floors on Python 3.11+
  • Dated osv-scanner ignores where the only fix needs Python 3.11 or a major bump, listed below, and a grype rule for GHSA-v4x8-3wr5-3wq8 scoped to filelock 3.32.7
  • Drops the stale certifi and withdrawn braces entries

Deferred with dated ignores

Extended with maintainer approval

User Flow

Before: a PR into main gets a red osv-scan on advisories it never touched

  1. They open a PR into main on https://github.com/BerriAI/litellm and wait for its checks
  2. The osv-scan check fails, listing 60 advisories across pillow, filelock, tornado, langgraph, langgraph-sdk, dnspython and @azure/msal-node
  3. main's daily osv-scan run is red too, so a new advisory is one more row in a red check

After: the same PR gets a green osv-scan

  1. They open a PR into main on https://github.com/BerriAI/litellm and wait for its checks
  2. The osv-scan check passes with "No issues found"
  3. main's daily osv-scan run is green, so an expired ignore or a new advisory outside them turns it red

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

osv-scanner v2.3.8 (checksum verified) with the command from .github/workflows/osv-scan.yml

osv-scanner scan source --config osv-scanner.toml \
  -L uv.lock \
  -L ui/litellm-dashboard/package-lock.json \
  -L vscode-extension/package-lock.json

Before (c40bdc4)

  1. Run the command above on main with the advisory data as of 01:20Z on 2026-10-29, and it exits 1
Total 7 packages affected by 60 known vulnerabilities (5 Critical, 28 High, 23 Medium, 4 Low, 0 Unknown) from 2 ecosystems.
  1. osv-scan on main fails the same way at 57c1df8, whose lockfiles match c40bdc4 (run)
  2. image-scan fails on GHSA-v4x8-3wr5-3wq8 alone, on main (run) and at bb1c1d1 here (run)

After (69b9794)

  1. Run the same command on this branch, and it exits 0
Filtered 20 vulnerabilities from output

No issues found
  1. The osv-scan check on this PR passes at 69b9794 (run)
  2. image-scan passes at 69b9794 (run)
  3. The image built from docker/Dockerfile.non_root at 69b9794 (linux/amd64) runs tornado 6.6 and serves a real call with no database
$ docker build -f docker/Dockerfile.non_root -t litellm-pr48302:69b9794e56 .
$ docker run --rm --entrypoint python litellm-pr48302:69b9794e56 -c "import tornado; print(tornado.version)"
6.6
$ docker run -d -p 31929:4000 -e OPENAI_API_KEY -e LITELLM_MASTER_KEY -v $PWD/config.yaml:/app/config.yaml:ro litellm-pr48302:69b9794e56 --config /app/config.yaml --port 4000
$ curl -s localhost:31929/v1/chat/completions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"Reply with the word pong"}]}'
{"id":"chatcmpl-EeDmNjyTwNvne09Jype5c1lx8dVvv","created":1793254795,"model":"gpt-5.4-mini","object":"chat.completion","choices":[{"finish_reason":"stop","index":0,"message":{"content":"pong","role":"assistant","annotations":[],"refusal":null},"provider_specific_fields":{}}],"usage":{"completion_tokens":4,"prompt_tokens":11,"total_tokens":15,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}},"service_tier":"default","system_fingerprint":null}
config.yaml
model_list:
  - model_name: gpt-5.4-mini
    litellm_params:
      model: openai/gpt-5.4-mini
      api_key: os.environ/OPENAI_API_KEY

Type

🚄 Infrastructure

Caveats (if any)

Low

Bugbot summary

[!NOTE]
Medium Risk
Large surface of dated vulnerability suppressions and lockfile bumps; runtime impact is limited but mis-timed ignore expiry or wrong reachability assumptions could hide real issues until Python 3.10/filelock caps are lifted.

Overview
Restores green osv-scan and image-scan after an expired pillow override and a wave of new advisories on filelock, tornado, langgraph, and related deps.

Dependency fixes: Bumps langgraph (and related checkpoint/sdk packages) in the lock. Adds uv constraint-dependencies so Python 3.11+ resolves tornado ≥6.6 and dnspython ≥2.9.0, with matching dual-version tornado entries in uv.lock while 3.10 stays on older lines.

Scanner policy: Expands osv-scanner.toml with time-boxed ignores and richer rationale for filelock (still capped at <4.0), tornado/dnspython on 3.10 only, dev-only @azure/msal-node, optional diskcache, and extends the pillow 12.3.0 override through 2026-11-27. Drops stale certifi and braces ignore entries. Adds a version-scoped Grype ignore for GHSA-v4x8-3wr5-3wq8 on filelock 3.32.7 in the proxy image.

Reviewed by Cursor Bugbot for commit 69b9794. Bugbot is set up for automated code reviews on this repo. Configure here.

…ifi entry to clear osv-scan

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… until azure identity allows 7.1

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

devin-ai-integration Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@codecov

codecov Bot commented Oct 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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>
…lear osv-scan

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri mateo-berri changed the title build(deps): clear osv-scan with dated ignores for filelock, dnspython, msal-node and pillow build(deps): bump langgraph and tornado and add dated scan ignores to clear osv-scan and image-scan Oct 29, 2026
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 69b9794. Configure here.

@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

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