SSRF in Langchain-Ai Langchain-Community
CVE-2026-72848
- CVSS v3
- 8.6 High
- Public exploits
- None known
- EPSS
- 0.006 · 49.9th percentile
- Published
- 2026-08-20
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 class: SSRF (Server-Side Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- High
C:H - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.006, 49.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/langchain-ai/langchain-community (product)
- parse_sitemap leaf check and unguarded nested recursion (technical-description)
- GitHub Issue #38814 (issue-tracking)
- VulnCheck Advisory: langchain-community SitemapLoader Does Not Apply restrict_to_same_domain to Nested Sitemap Index Entries, Allowing Server-Side Request Forgery (third-party-advisory)