# CVE-2024-0243: Server-side Request Forgery In Recursive URL Loader

- Severity: Low 3.7 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-24T17:59:26.498Z
- Modified: 2026-07-07T17:56:41.991Z
- Also known as: GHSA-h9j7-5xvc-qhg5, PYSEC-2024-235, PYSEC-2026-1509
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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

(As written by CVE List.)

## Affected

- langchain-ai langchain-ai/langchain: from unspecified before 0.1.0
- langchain-ai langchain-ai\/langchain: before 0.1.0
- langchain (PyPI): before 0.1.0
- langchain langchain: before 0.1.0
- langchain-exa (PyPI): before bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22; before 0.1.0

## Every score

- @huntr_ai: CVSS:3.0 3.7 Low `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.0 3.7 Low `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 3.7 Low `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22> (fix, patch, web)
- <https://github.com/langchain-ai/langchain/pull/15559> (issue-tracking, patch, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-0243> (advisory)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml> (web)
- <https://pypi.org/project/langchain> (package)
- <https://github.com/advisories/GHSA-h9j7-5xvc-qhg5> (advisory)

## Sources

- CVE List: [CVE-2024-0243](https://www.cve.org/CVERecord?id=CVE-2024-0243), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-h9j7-5xvc-qhg5](https://github.com/advisories/GHSA-h9j7-5xvc-qhg5), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-0243](https://nvd.nist.gov/vuln/detail/CVE-2024-0243), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-235](https://osv.dev/vulnerability/PYSEC-2024-235), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-1509](https://osv.dev/vulnerability/PYSEC-2026-1509), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-0243 · Whole record: https://cve.day/CVE-2024-0243.json · Rebuilt by cve.day 2026-11-25T22:58:37.040Z
