Repository navigation
fix: remediate nltk CVEs by constraining to >=3.10.0 - #17443
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe uv dependency constraints in ChangesNLTK dependency constraint
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17443 +/- ##
=======================================
Coverage 90.65% 90.65%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 650 650
Misses 39 39
Partials 28 28 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Remediates five nltk CVEs by adding
nltk>=3.10.0toconstraint-dependenciesinpyproject.toml.CVE-2026-0847 and CVE-2026-33236 have no confirmed fixed version.
nltkis a transitive dependency (pulled in bycrawl4aiandinfinity-sdk). No package in the graph caps it below 3.10.0. It was stuck at 3.9.2 simply because the lockfile had never been re-resolved.Verification
RAGFlow uses nltk for:
from nltk.corpus import wordnet(synonym expansion inrag/nlp/synonym.py)nltk.download("wordnet"/"punkt_tab")(data download at startup inapi/validation.py)The corpus API is unchanged in 3.10.0. The pre-bundled
nltk_data(wordnet, punkt, punkt_tab) in the Docker image is compatible with the newer package version.Testing
wordnet.ensure_loaded()succeeds with bundlednltk_datauv syncresolves cleanly