Skip to content
OpenAdvisories
High · 7.5 CVE-2025-6984 EUVD-2025-26850GHSA-pc6w-59fv-rh23PYSEC-2026-1515

Sensitive Information Disclosure Due to Insecure XML Parsing in langchain-ai/langchain

Published Sep 4, 2025 · Updated Sep 4, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
langchain-ai langchain-ai/langchain unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui +1 0.6.27-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI langchain-community < 0.3.27 0.3.27 GHSA-pc6w-59fv-rh23

References