p PatchFirst

CVE-2025-6984

CVE-2025-6984 · Sensitive Information Disclosure Due to Insecure XML Parsing in langchain-ai/langchain

This page contains facts from public vulnerability sources. Check the original advisory before updating.

The langchain-ai/langchain project, specifically the EverNoteLoader component, is vulnerable to XML External Entity (XXE) attacks due to insecure XML parsing. The affected version is 0.3.63. 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.

CVSS 7.5 · High · EPSS 1.6% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • langchain-ai/langchain

    Versions
    • ≥ unspecified, ≤ latest: Affected (custom)

    No fix published

  • langchain-community PyPI

    Versions
    • 0.0.1
    • 0.0.10
    • 0.0.11
    • 0.0.12
    • 0.0.13
    • 0.0.14
    • 0.0.15
    • 0.0.16
    • 0.0.17
    • 0.0.18
    • 0.0.19
    • 0.0.1rc1
    • 0.0.1rc2
    • 0.0.2
    • 0.0.20
    • 0.0.21
    • 0.0.22
    • 0.0.23
    • 0.0.24
    • 0.0.25
    • 0.0.26
    • 0.0.27
    • 0.0.28
    • 0.0.29
    • 0.0.3
    • 0.0.30
    • 0.0.31
    • 0.0.32
    • 0.0.33
    • 0.0.34
    • 0.0.35
    • 0.0.36
    • 0.0.37
    • 0.0.38
    • 0.0.4
    • 0.0.5
    • 0.0.6
    • 0.0.7
    • 0.0.8
    • 0.0.9
    • 0.2.0
    • 0.2.0rc1
    • 0.2.1
    • 0.2.10
    • 0.2.11
    • 0.2.12
    • 0.2.13
    • 0.2.14
    • 0.2.15
    • 0.2.16
    • 0.2.17
    • 0.2.18
    • 0.2.19
    • 0.2.2
    • 0.2.3
    • 0.2.4
    • 0.2.5
    • 0.2.6
    • 0.2.7
    • 0.2.9
    • 0.3.0
    • 0.3.0.dev1
    • 0.3.0.dev2
    • 0.3.1
    • 0.3.10
    • 0.3.11
    • 0.3.12
    • 0.3.13
    • 0.3.14
    • 0.3.15
    • 0.3.16
    • 0.3.17
    • 0.3.17rc1
    • 0.3.18
    • 0.3.19
    • 0.3.2
    • 0.3.20
    • 0.3.21
    • 0.3.22
    • 0.3.23
    • 0.3.24
    • 0.3.25
    • 0.3.26
    • 0.3.3
    • 0.3.4
    • 0.3.5
    • 0.3.6
    • 0.3.7
    • 0.3.8
    • 0.3.9
    Affected ranges
    • ECOSYSTEM: < 0.3.27

    Update to 0.3.27

Original sources

Check your server →