VDB
Sign up
HIGH7.5

PYSEC-2026-1515

Langchain Community Vulnerable to XML External Entity (XXE) Attacks

Quick fix

PYSEC-2026-1515 — langchain-community: upgrade to the fixed version with the command below.

pip install --upgrade 'langchain-community>=0.3.27'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/langchain-community
Introduced in: 0Fixed in: 0.3.27
Fixpip install --upgrade 'langchain-community>=0.3.27'

References