CVE Catalog

CVE-2026-72848

HighCVSS 8.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

39th percentile - higher than 39% of all known CVEs

Summary

A vulnerability in SitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py allows an attacker who controls a sitemap to point a nested sitemap entry at an internal address, even when restrict_to_same_domain is set to True. The server will fetch internal content and disclose it in returned documents.

Risk Assessment

An attacker could access internal network resources and disclose their content, potentially leading to leakage of sensitive information.

Recommendation

Apply vendor patch or strengthen domain and IP validation in SitemapLoader to block access to private, loopback, and link-local addresses.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS