# CVE-2026-72848: langchain-community SitemapLoader Does Not Apply restrict_to_same_domain to Nested Sitemap Index Entries, Allowing Server-Side Request Forgery

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-20T21:57:36.212Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- langchain-community: up to 0.4.2

## Every score

- VulnCheck: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- VulnCheck: CVSS:4.0 7.7 High `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`

## References

- <https://github.com/langchain-ai/langchain/issues/38814> (exploit, issue-tracking)
- <https://github.com/langchain-ai/langchain-community/blob/main/libs/community/langchain_community/document_loaders/sitemap.py> (technical-description)
- <https://github.com/langchain-ai/langchain-community> (product)
- <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> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-72848](https://www.cve.org/CVERecord?id=CVE-2026-72848), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-72848](https://nvd.nist.gov/vuln/detail/CVE-2026-72848), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-72848 · Whole record: https://cve.day/CVE-2026-72848.json · Rebuilt by cve.day 2026-11-25T22:59:34.747Z
