---
id: CVE-2026-72848
title: >-
  SitemapLoader.parse_sitemap in langchain_community/document_loaders/sitemap.py
  applies the documented restrict_to_same_domain control only to leaf url
  entries
summary: >-
  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 …
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'
cwe:
  - CWE-918
vendor: langchain-ai
product: langchain-community
affected:
  - langchain-community <= 0.4.2
published: '2026-08-20'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:02:50.260'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72848'
references:
  - url: 'https://github.com/langchain-ai/langchain-community'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/langchain-ai/langchain-community/blob/main/libs/community/langchain_community/document_loaders/sitemap.py
    label: disclosure@vulncheck.com
  - url: 'https://github.com/langchain-ai/langchain/issues/38814'
    label: disclosure@vulncheck.com
  - url: >-
      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
    label: disclosure@vulncheck.com
  - url: 'https://github.com/langchain-ai/langchain/issues/38814'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72848.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-72848'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2520844'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-72848'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72848'
  - url: 'https://access.redhat.com/errata/RHSA-2026:84734'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00604
epssPercentile: 0.48693
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-08-21T17:35:12.508114Z'
ingestedAt: '2026-09-24T15:45:56.712Z'
patched:
  - openshift_ai 3.4
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Exploit Intelligence, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3 · no fix planned: Exploit Intelligence, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3 · updated 2026-10-19 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72848.json)
- **RHSA-2026:84734** · Red Hat · fixed in: Red Hat OpenShift AI 3.4 · released 2026-10-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:84734)
