# CVE-2024-2057: LangChain langchain\_community TFIDFRetriever tfidf.py load\_local server-side request forgery

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-01 · Modified: 2024-08-01
- Aliases: PYSEC-2024-278
- Record: https://cvemate.com/vulnerability/CVE-2024-2057 · JSON: https://cvemate.com/vulnerability/CVE-2024-2057/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.68%, percentile 53.809%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- langchain langchain: 0.0.26
- langchain langchain\_community: 0.0.26
- PyPI langchain-community (PyPI): ≤ 0.0.26

## References

- <https://vuldb.com/?id.255372>
- <https://vuldb.com/?ctiid.255372>
- <https://github.com/bayuncao/vul-cve-16>
- <https://github.com/bayuncao/vul-cve-16/tree/main/PoC.pkl>
- <https://github.com/langchain-ai/langchain/pull/18695>

---

Data as of 2026-12-05T13:00:28.001Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
