CVE-2026-72848 Server-side request forgery in langchain-community

High 7.7 Published Updated

Attackers can bypass domain restrictions in SitemapLoader to perform Server-Side Request Forgery and read internal data via nested sitemap entries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-72848?

CVE-2026-72848 is a high-severity server-side request forgery vulnerability in langchain-ai langchain-community, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-918

Which versions are affected by CVE-2026-72848?

How do I fix CVE-2026-72848?

No fix has been published for CVE-2026-72848 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-72848 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-72848 exists.

Sources

Also known as GHSA-vg8m-4p2q-gcjh.

Is CVE-2026-72848 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free