INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2025-6984

Langchain Community Vulnerable to XML External Entity (XXE) Attacks

CVE-2025-6984 ยท 2025-09-04 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Information exposure
Affected
langchain-community (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.6% chance of exploitation in 30 days

How it works, in short

The Evernote loader parses attacker-supplied XML with external entities enabled, letting it read local files such as system password files. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.