CVE-2024-2057
LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery
Also known as PYSEC-2024-278
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Projects that depend on PyPI package langchain-community (<= 0.0.26)
- Anyone running langchain_community 0.0.26
Vulnerability facts
- Affected
- langchain-community <= 0.0.26
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 6.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.80% chance of exploitation in 30 days (percentile 53, 2026-11-26)
- CWE
- CWE-918
- Modified
Description
A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI langchain-community | <= 0.0.26 | — | osv |
| langchain_community | 0.0.26 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-2057. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-2057.md Affected: langchain-community <= 0.0.26 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for langchain-community (PyPI), langchain_community: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Exploits and PoCs
Articles
FAQ
Is CVE-2024-2057 being exploited?
There is no confirmed exploitation: CVE-2024-2057 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-2057?
Medium: CVSS 6.3 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-2057?
langchain-community <= 0.0.26.
Is there a fix for CVE-2024-2057?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-2057?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.