Repository navigation
Conversation
filelock 4.2.1+ is the only fixed release and requires Python >= 3.11, so the pin is split like pillow: 4.2.4 on 3.11+ and 3.20.3 on 3.10, which sits below every affected range. The GHSA-v4x8-3wr5-3wq8 ignore is removed.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Merging this PR will not alter performance1 warning
Comparing Footnotes |
This was referenced Oct 28, 2026
5 tasks done
2 of 5 tasks
|
|
1 of 5 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
osv-scan is failing on the locked filelock 3.32.7 because ReadWriteLock advisories (GHSA-v4x8-3wr5-3wq8 and friends) only clear in 4.2.1+, which needs Python 3.11. This splits the pin the same way pillow and lunary already do, so 3.11+ locks a fixed 4.x release and Python 3.10 stays on 3.20.3, which is below every affected range. The dated filelock ignore in osv-scanner.toml can go away
Details
TLDR
Problem this solves:
How it solves it:
filelock 4.x requires Python 3.11 or newer, and there is no 3.x release with the fixes. The advisories all start at 3.20.4 (soft-lock Windows DoS at 3.22.0), so capping 3.10 at
<3.20.4lands on 3.20.3 with an empty vulnerability list on PyPI. litellm only importsFileLock/Timeoutin the proxy CLI profile helpers, neverReadWriteLockThe same marker split is mirrored in
packaging/litellm-core/pyproject.toml. The lock was generated with uv 0.12.24 so theuv.lockdiff only touches filelock. This replaces the "defer filelock" path that #48302 was taking for the same advisoriesUser Flow
Before: a contributor's PR to main fails osv-scan on filelock even when it touches no dependencies
After: the same PR's osv-scan no longer reports those filelock advisories
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
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 moreDelays 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
Shared setup: from the repo root, inspect the locked filelock rows and the direct dependency markers
Before (de40c0a)
rg -n 'name = "filelock"|filelock>=|filelock<' pyproject.toml packaging/litellm-core/pyproject.toml uv.lock osv-scanner.tomlfilelockpackage at 3.32.7,filelock>=3.16.1,<4.0in both pyprojects, andGHSA-v4x8-3wr5-3wq8ignored inosv-scanner.tomlAfter (8f59453)
rgas Beforefilelock3.20.3 underpython_full_version < '3.11',filelock4.2.4 underpython_full_version >= '3.11', version-marker splits in both pyprojects, and no filelock entry left inosv-scanner.tomlType
🚄 Infrastructure
Caveats (if any)
Low
Final Attestation