{"cve":"CVE-2024-0243","nvd":{"published":"2024-02-26T16:27:49.670","modified":"2026-06-17T06:53:04.443","status":"Analyzed","description":"With the following crawler configuration:\n\n```python\nfrom bs4 import BeautifulSoup as Soup\n\nurl = \"https://example.com\"\nloader = RecursiveUrlLoader(\n    url=url, max_depth=2, extractor=lambda x: Soup(x, \"html.parser\").text\n)\ndocs = loader.load()\n```\n\nAn 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`.\n\nhttps://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51\n\nResolved in https://github.com/langchain-ai/langchain/pull/15559","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-918"],"references":["https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","https://github.com/langchain-ai/langchain/pull/15559","https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","https://github.com/langchain-ai/langchain/pull/15559"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-0243","score":0.00517,"percentile":0.44005,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h9j7-5xvc-qhg5","url":"https://osv.dev/vulnerability/GHSA-h9j7-5xvc-qhg5","summary":"langchain Server-Side Request Forgery vulnerability","modified":"2026-07-07T17:56:41.991383859Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.1.0"],"fixed":["0.1.0"]}]},{"id":"PYSEC-2024-235","url":"https://osv.dev/vulnerability/PYSEC-2024-235","summary":"","modified":"2026-07-07T17:56:41.991383859Z","packages":[{"ecosystem":"PyPI","name":"langchain-exa","purl":"pkg:pypi/langchain-exa","ranges":["<0.1.0"],"fixed":["0.1.0"]}]},{"id":"PYSEC-2026-1509","url":"https://osv.dev/vulnerability/PYSEC-2026-1509","summary":"langchain Server-Side Request Forgery vulnerability","modified":"2026-07-07T17:56:41.991383859Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.1.0"],"fixed":["0.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}