Skip to content

build(deps): extend the diskcache osv suppression to 2026-10-09 to clear osv-scan - #40309

Closed
devin-ai-integration[bot] wants to merge 4 commits into
litellm_internal_stagingfrom
litellm_osv_next_16_3_3_sharp_jsyaml_vitest
Closed

devin-ai-integration[bot] wants to merge 4 commits into
litellm_internal_stagingfrom
litellm_osv_next_16_3_3_sharp_jsyaml_vitest

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • osv-scan is red on litellm_internal_staging again
  • the dated diskcache suppression expired on 2026-09-09 and there is still no fix
  • every PR into a litellm_** branch inherits the failure

How it solves it:

  • extend the diskcache IgnoredVulns entry to 2026-10-09 with a reason that names the state of the fix
  • drop the vitest suppression: staging now carries vitest 4.1.11, so it is unused
  • the earlier next 16.3.3, sharp 0.35.4 and js-yaml 4.3.2 bumps from this PR have since landed on staging through other PRs, so after merging staging in the diff is osv-scanner.toml only

Advisories

GHSA CVSS Package Fixed in Impact
GHSA-w8v5-vhqr-4h9v (PYSEC-2026-2447) 5.2 diskcache 5.6.3 none unsafe pickle deserialization of cached values by an attacker who can write to the cache directory

diskcache's latest PyPI release is still 5.6.3 from 2023-08-31, so there is no version to bump to and the exclude-newer = "3 days" uv window is not the constraint here. The suppression is dated 2026-10-09; the daily "Sweep expiring osv-scanner suppressions" automation re-checks PyPI and lands the bump as soon as a fixed release exists. The mlflow entry (GHSA-h7x2-h6g9-p789, until 2026-09-14) is untouched.

User Flow

Before: an engineer opening any PR into litellm_internal_staging sees the osv-scan check fail

  1. They push a branch and open a PR against litellm_internal_staging
  2. The osv-scan check goes red, listing diskcache 5.6.3 from uv.lock with no fixed version
  3. Their PR cannot merge until the shared config is fixed

After: the same PR gets a green osv-scan check

  1. They push a branch and open a PR against litellm_internal_staging
  2. The osv-scan check passes with "No issues found"

Relevant issues

Failing run: https://github.com/BerriAI/litellm/actions/runs/34294337835/job/102287550643

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests (config-only change; the scanner run below is the test)
  • The handful of test files covering my change pass locally
  • 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
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review

Screenshots / Proof of Fix

Scanner: osv-scanner v2.3.8 (sha256 bc98e153...92dc, the same pin as .github/workflows/osv-scan.yml), run as osv-scanner scan source --config osv-scanner.toml -L uv.lock -L ui/litellm-dashboard/package-lock.json

Before (402351d, origin/litellm_internal_staging)

  1. Run the scanner on staging
  2. Output (exit 1):
Scanned /home/ubuntu/repos/litellm/uv.lock file and found 455 packages
Scanned /home/ubuntu/repos/litellm/ui/litellm-dashboard/package-lock.json file and found 863 packages
GHSA-h7x2-h6g9-p789 and 1 alias have been filtered out because: mlflow has no fixed release published; remove this entry once one exists
Filtered 1 vulnerability from output
osv-scanner.toml has unused ignores:
 - GHSA-w8v5-vhqr-4h9v

Total 1 package affected by 1 known vulnerability (0 Critical, 0 High, 1 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
0 vulnerabilities can be fixed.

+-------------------------------------+------+-----------+-----------+---------+---------------+---------+
| OSV URL                             | CVSS | ECOSYSTEM | PACKAGE   | VERSION | FIXED VERSION | SOURCE  |
+-------------------------------------+------+-----------+-----------+---------+---------------+---------+
| https://osv.dev/PYSEC-2026-2447     | 5.2  | PyPI      | diskcache | 5.6.3   | --            | uv.lock |
| https://osv.dev/GHSA-w8v5-vhqr-4h9v |      |           |           |         |               |         |
+-------------------------------------+------+-----------+-----------+---------+---------------+---------+

After (8aa8fbc, PR tip)

  1. Run the same scanner on the PR head
  2. Output (exit 0):
Scanned /home/ubuntu/repos/litellm/uv.lock file and found 455 packages
Scanned /home/ubuntu/repos/litellm/ui/litellm-dashboard/package-lock.json file and found 863 packages
GHSA-w8v5-vhqr-4h9v and 2 aliases have been filtered out because: diskcache unsafe pickle deserialization (CVSS 5.2); latest release is still 5.6.3 (2023-08-31) and no fixed release exists on PyPI as of 2026-09-09; remove this entry once one exists
GHSA-h7x2-h6g9-p789 and 1 alias have been filtered out because: mlflow has no fixed release published; remove this entry once one exists
Filtered 3 vulnerabilities from output

No issues found

Type

🚄 Infrastructure

Caveats (if any)

Low

  • diskcache GHSA-w8v5-vhqr-4h9v stays suppressed until 2026-10-09; no upstream fix exists to bump to

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

…nd vitest to 4.1.11 to clear osv-scan

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

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates dashboard dependencies to patched releases, retains the compatible Vitest 3 toolchain under a temporary dated scanner exception, and preserves the existing Next.js TypeScript build path.

  • Updates Next.js to 16.3.3 and refreshes its transitive runtime packages.
  • Updates Sharp, its platform binaries, and the js-yaml override.
  • Keeps Vitest-related packages consistently pinned to 3.2.6.
  • Configures Next.js to use the prior TypeScript API build behavior.
  • Adds a temporary, expiring scanner exception for the deferred development dependency migration.

Confidence Score: 5/5

The PR appears safe to merge because the dependency graph is internally consistent and no actionable regression or exposed security path was identified.

The dashboard manifest and lockfile agree, the deferred development dependency is not exposed by repository CI or server configuration, and the supplied build evidence confirms that the Next.js build still completes TypeScript checking.

Important Files Changed

Filename Overview
osv-scanner.toml Adds a documented, dated exception for a deferred development-only dependency migration.
ui/litellm-dashboard/next.config.mjs Preserves the existing TypeScript API type-checking path after the Next.js upgrade.
ui/litellm-dashboard/package.json Updates Next.js and js-yaml while keeping the compatible Vitest 3 package set.
ui/litellm-dashboard/package-lock.json Consistently resolves the upgraded Next.js, Sharp, and js-yaml packages and the restored Vitest 3 dependency graph.

Reviews (2): Last reviewed commit: "build(deps): keep vitest on 3.2.6 with a..." | Re-trigger Greptile

…n next's typecheck to the API mode

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title build(deps): bump next to 16.3.3, sharp to 0.35.4, js-yaml to 4.3.2 and vitest to 4.1.11 to clear osv-scan build(deps): bump next to 16.3.3, sharp to 0.35.4 and js-yaml to 4.3.2 to clear osv-scan Sep 8, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@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 a39f6b6. Configure here.

mateo-berri and others added 2 commits September 9, 2026 00:18
…rop the vitest entry now that staging carries 4.1.11

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title build(deps): bump next to 16.3.3, sharp to 0.35.4 and js-yaml to 4.3.2 to clear osv-scan build(deps): extend the diskcache osv suppression to 2026-10-09 to clear osv-scan Sep 9, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Superseded: litellm_internal_staging now carries next 16.3.3, sharp 0.35.4, js-yaml 4.3.2 and vitest 4.1.11 directly (568ea11, bc83058), and the pinned scanner exits 0 on a99ecac. Nothing left for this PR to land.

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