{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-0243","id":"CVE-2024-0243","title":"Server-side Request Forgery In Recursive URL Loader","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.completel","descriptionLong":"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","published":"2024-02-24T17:59:26.498Z","updated":"2026-10-28T02:30:24.918519886Z","reserved":"2024-01-04T21:47:13.281Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","rating":"low","source":"@huntr_ai"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","rating":"low","source":"huntr.dev"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","rating":"low","source":"OSV"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","rating":"low","source":"GitHub"}],"rating":"high","products":["langchain-ai/langchain"],"affectedProducts":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"0.1.0","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.1.0"],"fixed":["0.1.0"],"advisory":"GHSA-h9j7-5xvc-qhg5"},{"ecosystem":"PyPI","name":"langchain-exa","purl":"pkg:pypi/langchain-exa","ranges":["<0.1.0"],"fixed":["0.1.0"],"advisory":"PYSEC-2024-235"}],"cwes":["CWE-918"],"aliases":["GHSA-h9j7-5xvc-qhg5","PYSEC-2024-235","PYSEC-2026-1509"],"references":[{"url":"https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","web"]},{"url":"https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/langchain-ai/langchain/pull/15559","tags":["x_transferred","Issue Tracking","Patch","fix","web","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/0xxx/CVE-2024-0243.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0243","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml","tags":["web"]},{"url":"https://pypi.org/project/langchain","tags":["package"]},{"url":"https://github.com/advisories/GHSA-h9j7-5xvc-qhg5","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00517,"epssPercentile":0.44663,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-0243","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0243","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-0243","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h9j7-5xvc-qhg5","ok":true,"note":"GHSA-h9j7-5xvc-qhg5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-0243","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}