Skip to content
LangChainGHSA-pc6w-59fv-rh23

Langchain Community Vulnerable to XML External Entity (XXE) Attacks

High7.5CVE-2025-6984 · Published Sep 4, 2025 · updated Sep 10, 2026

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
langchain-community
PyPI
< 0.3.270.3.27
Details and references

More LangChain advisories

All LangChain

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.