Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
langchain-ai langchain-community
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

漏洞描述翻译: 在 文件中的 函数里, 控制机制仅被应用于最终的 URL 条目。虽然循环遍历 URL 元素时会过滤掉跨域的位置,但遍历嵌套 Sitemap 元素时,会直接将子级 传递给 。该方法会调用 ,进而发起一个 GET 请求,且在此过程中没有进行域名比较,也未检查目标是否为私有地址、环回地址(localhost)或链路本地地址。 因此,攻击者如果能够控制或影响某个被加载的 Sitemap,就可以将一个嵌套 Sitemap 条目指向内部地址(如内网地址),即使部署该应用的开发者明确设置了 以限制出站请求仅访问相

CVSS 8.6 · High EPSS 0.48% · P39

Affected Version Matrix 1

VendorProduct Version RangeStatus
langchain-ai langchain-community ≤ 0.4.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-72848

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
langchain-community SitemapLoader Does Not Apply restrict_to_same_domain to Nested Sitemap Index Entries, Allowing Server-Side Request Forgery
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
服务端请求伪造(SSRF)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
langchain-ai langchain-community 0 ~ 0.4.2 -

II. Public POCs for CVE-2026-72848

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 10756 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-72848

登录查看更多情报信息。

Vendor Advisories for CVE-2026-72848 (2)

Vendor Pages for CVE-2026-72848 (1)

Other References for CVE-2026-72848 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-72848

No comments yet


Leave a comment