CVE-2024-0243: Server-side Request Forgery In Recursive URL Loader
Vulnerability summary
CVE-2024-0243 is a high (CVSS 8.1) Server-Side Request Forgery vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 45.4% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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
45%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.52% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
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