High

Langchain Community Vulnerable to XML External Entity (XXE) Attacks

  • Disclosed: 04.09.2025
  • Updated: 11.10.2026 15:17

The langchain-ai/langchain project, specifically the EverNoteLoader component, is vulnerable to XML External Entity (XXE) attacks due to insecure XML parsing. The vulnerability arises from the use of etree.iterparse() without disabling external entity references, which can lead to sensitive information disclosure. An attacker could exploit this by crafting a malicious XML payload that references local files, potentially exposing sensitive data such as /etc/passwd. This issue has been fixed in 0.3.27 of langchain-community.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) langchain-community < 0.3.27 0.3.27

References

CVSS score 7.5/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-200, CWE-611
Platform
Python (PyPI)
Package
langchain-community
Disclosed
04.09.2025
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1515 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-pc6w-59fv-rh23 - CC BY 4.0

Vulnerability history: langchain-community

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
6
First → latest
03.2024 09.2025
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 1
  • Medium 3

Disclosures per year

  1. 2024: 4
  2. 2025: 2
  3. 2026: 0
  1. Langchain Community Vulnerable to XML External Entity (XXE) Attacks this entry
    High · 7.5 CVE-2025-6984 < 0.3.27 0.3.27
  2. Medium · 5.2 CVE-2024-5998 < 0.2.4 0.2.4
  3. Medium · 4.2 CVE-2024-2965 < 0.2.5 0.2.5

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.