mediumCVSS 6.3NVD status: Analyzed

CVE-2024-2057

LangChain: A vulnerability was found in LangChain langchain_community 0.0.26.

ComponentLangChain
Severitymedium (CVSS 6.3)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Published (NVD)2024-03-01
Last modified2026-06-17
Affected versions
langchain = 0.0.26
Fixed insee the vendor advisory
WeaknessCWE-918
CISA KEVnot listed

NVD 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.

Does CVE-2024-2057 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for LangChain.
Check my stack

What to do

  • NVD lists no fixed version yet: follow the vendor advisory below and keep LangChain off the public internet until a fix ships.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Other LangChain CVEs

All LangChain CVEs