CVE-2026-72848
SitemapLoader.parse_sitemap in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/langchain-ai/langchain-community
- github.com/langchain-ai/langchain-community/blob/main/libs/community/langchain_community/d
- github.com/langchain-ai/langchain/issues/38814
- www.vulncheck.com/advisories/langchain-community-sitemaploader-does-not-apply-restrict-to-
- nvd.nist.gov/vuln/detail/CVE-2026-72848
- cve.org/CVERecord?id=CVE-2026-72848
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.