{"schemaVersion":4,"id":"CVE-2024-0243","aliases":["GHSA-h9j7-5xvc-qhg5","PYSEC-2024-235","PYSEC-2026-1509"],"status":"published","duplicateOf":null,"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.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","dates":{"published":"2024-02-24T17:59:26.498Z","modified":"2025-04-22T16:14:26.674Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","exploitability":1.5,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00517,"percentile":0.45493,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00517},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00517,"percentile":0.45493}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00567,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00517,"percentile":0.45493}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_16995AD4CDDBCDD3","name":"Exploit Reference (huntr.com)","source":"reference","url":"https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery","description":"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"langchain-ai","product":"langchain-ai/langchain","name":"langchain-ai/langchain","label":"langchain-ai/langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 0.1.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"unspecified","startInclusive":true,"end":"0.1.0","endInclusive":false}}],"versionsText":"≥ unspecified, < 0.1.0","eol":null,"hubHref":"/vendor/langchain-ai/langchain-ailangchain"},{"vendor":"langchain","product":"langchain","name":"langchain","label":"langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.1.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.1.0","endInclusive":false}}],"versionsText":"< 0.1.0","eol":null,"hubHref":"/vendor/langchain/langchain"},{"vendor":"PyPI","product":"langchain","name":"langchain","label":"langchain","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain","purlType":"pypi","versions":[{"text":"< 0.1.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.1.0","endInclusive":false}}],"versionsText":"< 0.1.0","eol":null,"hubHref":null},{"vendor":"PyPI","product":"langchain-exa","name":"langchain-exa","label":"langchain-exa","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain-exa","purlType":"pypi","versions":[{"text":"< bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","endInclusive":false}},{"text":"< 0.1.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.1.0","endInclusive":false}}],"versionsText":"< bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22 | < 0.1.0","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","label":"huntr.com/bounties/370904e7-10ac-40a4-a8d4-e2d16e1ca861","hostname":"huntr.com","tags":["WEB","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","label":"github.com/langchain-ai/langchain/commit/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22","hostname":"github.com","tags":["WEB","FIX","Patch"]},{"url":"https://github.com/langchain-ai/langchain/pull/15559","label":"github.com/langchain-ai/langchain/pull/15559","hostname":"github.com","tags":["WEB","REPORT","Issue Tracking","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0243","label":"nvd.nist.gov/vuln/detail/CVE-2024-0243","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchain","label":"github.com/langchain-ai/langchain","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51","label":"github.com/langchain-ai/…","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/langchain-exa/PYSEC-2024-235.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/langchain","label":"pypi.org/project/langchain","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-h9j7-5xvc-qhg5","label":"github.com/advisories/GHSA-h9j7-5xvc-qhg5","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-02-24T17:59:26.498Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T16:14:26.674Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 3.7, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,1,1,37],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00517,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-04-22T16:14:26.674Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.0","headline":true},{"type":"cvss","source":"osv_pypi","date":"2025-04-22T16:14:26.674Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},{"type":"cvss","source":"nvd","date":"2025-04-22T16:14:26.674Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-04-22T16:14:26.674Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},{"type":"adp","source":"cisa-adp","date":"2024-02-26T18:43:11.371Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"exploit","source":"reference","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"unknown","verified":false}],"epss":{"value":0.00517,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T13:01:25.582Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T13:01:26.078Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T13:01:07.092Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T13:01:23.911Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T13:01:22.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:20:30.852Z","stale":false,"partial":false}}