CVE-2024-0243: langchain-ai langchain-ai/langchain Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2024-0243 is a high (CVSS 8.1) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 42.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 24-02-2024PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
Description
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
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · PypiEcosystem advisory · calculated3.7LowCVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N
- NVDNIST3.7LowCVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.52%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
0.00 pp
From 0.52% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
PyPI2 products
- langchain< 0.1.0
- langchain-exa< bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22 | < 0.1.0
Langchain1 product
- langchain< 0.1.0
Langchain-ai1 product
- langchain-ai/langchain≥ unspecified, < 0.1.0
3 vendors · 4 products
References
9 links- pypi.org/project/langchainPACKAGE