{"id":"CVE-2024-0243","aliases":["CVE-2024-0243","GHSA-h9j7-5xvc-qhg5","PYSEC-2024-235","PYSEC-2026-1509"],"related":[],"kind":"vulnerability","state":"published","title":"Server-side Request Forgery In Recursive URL Loader","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"Con la siguiente configuración del rastreador: ```python de 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() ``` Un atacante que controle el contenido de `https://example.com` podría colocar un archivo HTML malicioso allí con enlaces como \"https:/example.completely.different/my_file.html\" y el rastreador procedería a descargar ese archivo también aunque `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resuelto en https://github.com/langchain-ai/langchain/pull /15559","source":"nvd"}],"published":"2024-02-24T17:59:26.498Z","modified":"2026-07-07T17:56:41.991Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.1.0","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai/langchain","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.1.0","status":"affected"}],"vendor":"langchain-ai","product":"langchain-ai\\/langchain","cpe":"cpe:2.3:a:langchain-ai:langchain-ai\\/langchain:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.0"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.1.0"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22"},{"type":"git","status":"affected","fixed":"bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.0"}],"ecosystem":"PyPI","package":"langchain-exa","purl":"pkg:pypi/langchain-exa","repo":"https://github.com/langchain-ai/langchain","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.0"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/15559","tags":["issue-tracking","patch","report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0243","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langchain","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-h9j7-5xvc-qhg5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-02-26T18:43:11.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-0243","url":"https://www.cve.org/CVERecord?id=CVE-2024-0243","licence":"CVE Terms of Use","modified":"2025-04-22T16:14:26.674Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h9j7-5xvc-qhg5","url":"https://github.com/advisories/GHSA-h9j7-5xvc-qhg5","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:41.991Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-0243","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0243","licence":"Public domain","modified":"2026-06-17T06:53:04.443Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-235","url":"https://osv.dev/vulnerability/PYSEC-2024-235","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:41.991Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1509","url":"https://osv.dev/vulnerability/PYSEC-2026-1509","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:41.991Z"}],"updatedAt":"2026-11-25T22:58:37.040Z","epss":{"score":0.00517,"percentile":0.45468,"date":"2026-12-02T12:00:21.000Z"}}