CVE-2024-0243 json
Server-side Request Forgery In Recursive URL Loader
published 2024-02-24 2 y ago modified 2026-07-07 4 mo ago also GHSA-h9j7-5xvc-qhg5 , PYSEC-2024-235 , PYSEC-2026-1509 , EUVD-2024-0652
- cvss
- 3.7
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- pypi langchain 0.1.0
- pypi langchain-exa 0.1.0
- langchain-ai langchain-ai/langchain 0.1.0
- langchain-ai langchain-ai\/langchain 0.1.0
- github.com/langchain-ai/langchain@bf0b3cc commit
- github.com/langchain-ai/langchain#15559 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 3.7 | CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 3.7 | CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.0 | 3.7 | CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.1.0 |
0.1.0 |
| pypi | langchain-exa | <0.1.0 |
0.1.0 |
Affected products
- langchain-ai langchain-ai/langchain
- langchain-ai langchain-ai\/langchain
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
References
-
github.com
/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22
web, patch
-
github.com
/langchain-ai/langchain/pull/15559
web, issue-tracking, patch, report
-
huntr.com
/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-0243
advisory
-
github.com
/langchain-ai/langchain
package
-
github.com
/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/docum
web
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml
web
-
pypi.org
/project/langchain
package
-
github.com
/advisories/GHSA-h9j7-5xvc-qhg5
advisory
Sources
- CVE List CVE-2024-0243
- GitHub Advisory GHSA-h9j7-5xvc-qhg5
- NVD CVE-2024-0243
- OSV PYSEC-2026-1509
- OSV PYSEC-2024-235
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.