Skip to content
HighVulnerability

CVE-2026-72848: SitemapLoader nested sitemap entries bypass restrict_to_same_domain

Identifier
CVE-2026-72848
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

SitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py applies restrict_to_same_domain only to leaf url entries, not to nested sitemap entries, which are passed directly to self.scrape_all([loc.text], "xml") and fetched with an aiohttp GET. An attacker who controls or influences an ingested sitemap can point a nested entry at an internal address, so the server fetches it even when restrict_to_same_domain is True, and the response is returned in the Documents.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.