patchminder
Proof of concept · CISA assessment CVE-2024-0243

Server-side request forgeryin LangChain AI LangChain.

Published 24 Feb 2024 · Updated 22 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Low 3.7
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.1.0 or later
In plain words

With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559

What to do now
  • Upgrade langchain-ai/langchain to 0.1.0 or later.
  • Upgrade langchain (PyPI) to 0.1.0 or later.
  • Upgrade langchain-exa (PyPI) to 0.1.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
langchain-ai/langchain
before 0.1.0
0.1.0
CVE record
langchain (PyPI)
before 0.1.0
0.1.0
GitHub advisory
langchain-exa (PyPI)
before 0.1.0
0.1.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 4 Jan 2024
    CVE ID reserved by @huntr_ai.
  2. 24 Feb 2024
    Published in the CVE List.
  3. 22 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other LangChain vulnerabilities

Same weakness: Server-side request forgery

All CWE-918 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-0243: Server-side request forgery in LangChain AI LangChain. https://patchminder.com/cve/cve-2024-0243/ (accessed 5 December 2026).