Advisory

PYSEC-2026-1515

Also known as: CVE-2025-6984, GHSA-pc6w-59fv-rh23

Summary

Langchain Community Vulnerable to XML External Entity (XXE) Attacks

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

langchain-community

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.27 (ecosystem)

Fixed versions

0.3.27

Fix

  • Fixed version 0.3.27
    pip install --upgrade langchain-community==0.3.27

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences