{"id":"CVE-2026-72848","aliases":["CVE-2026-72848"],"related":[],"kind":"vulnerability","state":"published","title":"langchain-community SitemapLoader Does Not Apply restrict_to_same_domain to Nested Sitemap Index Entries, Allowing Server-Side Request Forgery","summary":"SitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py applies the documented restrict_to_same_domain control only to leaf url entries. The loop over url elements filters cross-domain locations, but the loop over nested sitemap elements passes the child loc straight to self.scrape_all([loc.text], \"xml\"), which reaches WebBaseLoader.scrape_all and an aiohttp GET, with no domain comparison and no check for private, loopback or link-local destinations. An attacker who controls or influences an ingested sitemap can therefore point a nested sitemap entry at an internal address and make the server fetch it even when the deploying application set restrict_to_same_domain to True specifically to confine outbound requests. The fetched content is parsed and surfaces in the returned Documents, so internal responses are disclosed to the caller rather than merely requested.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py applies the documented restrict_to_same_domain control only to leaf url entries. The loop over url elements filters cross-domain locations, but the loop over nested sitemap elements passes the child loc straight to self.scrape_all([loc.text], \"xml\"), which reaches WebBaseLoader.scrape_all and an aiohttp GET, with no domain comparison and no check for private, loopback or link-local destinations. An attacker who controls or influences an ingested sitemap can therefore point a nested sitemap entry at an internal address and make the server fetch it even when the deploying application set restrict_to_same_domain to True specifically to confine outbound requests. The fetched content is parsed and surfaces in the returned Documents, so internal responses are disclosed to the caller rather than merely requested.","source":"cvelist"},{"lang":"es","text":"SitemapLoader.parse_sitemap en langchain_community/document_loaders/sitemap.py aplica el control documentado restrict_to_same_domain solo a las entradas de URL hoja. El bucle sobre los elementos de URL filtra las ubicaciones de dominio cruzado, pero el bucle sobre los elementos de sitemap anidados pasa el loc hijo directamente a self.scrape_all([loc.text], 'xml'), lo que llega a WebBaseLoader.scrape_all y a una solicitud GET de aiohttp, sin comparación de dominio y sin verificación de destinos privados, de bucle invertido o de enlace local. Un atacante que controla o influye en un sitemap ingerido puede, por lo tanto, apuntar una entrada de sitemap anidado a una dirección interna y hacer que el servidor la obtenga incluso cuando la aplicación de despliegue configuró restrict_to_same_domain como True específicamente para confinar las solicitudes salientes. El contenido obtenido es analizado y aparece en los Documentos devueltos, por lo que las respuestas internas se divulgan al llamador en lugar de simplemente ser solicitadas.","source":"nvd"}],"published":"2026-08-20T21:57:36.212Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","score":7.7,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.4.2","status":"affected"}],"vendor":"langchain-ai","product":"langchain-community","package":"langchain-community","repo":"https://github.com/langchain-ai/langchain-community","source":"cvelist"}],"references":[{"url":"https://github.com/langchain-ai/langchain/issues/38814","tags":["exploit","issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/langchain-ai/langchain-community/blob/main/libs/community/langchain_community/document_loaders/sitemap.py","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/langchain-ai/langchain-community","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/langchain-community-sitemaploader-does-not-apply-restrict-to-same-domain-to-nested-sitemap-index-entries-allowing-server-side-request-forgery","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["George Chen"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-21T17:35:12.508Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72848","url":"https://www.cve.org/CVERecord?id=CVE-2026-72848","licence":"CVE Terms of Use","modified":"2026-10-01T15:20:29.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72848","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72848","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.747Z","epss":{"score":0.00604,"percentile":0.50277,"date":"2026-12-01T12:00:22.000Z"}}