---
id: CVE-2025-6984
aliases:
  - GHSA-pc6w-59fv-rh23
  - PYSEC-2026-1515
title: Langchain Community Vulnerable to XML External Entity (XXE) Attacks
summary: Langchain Community Vulnerable to XML External Entity (XXE) Attacks
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: langchain-community
product: langchain-community
ecosystem: pip
affected:
  - langchain-community < 0.3.27
patched:
  - langchain-community 0.3.27
published: '2025-09-04'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:28.568695973Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pc6w-59fv-rh23'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-6984'
  - url: >-
      https://github.com/langchain-ai/langchain-community/commit/e842452108089524e22c3a2ced851c021884556f
  - url: 'https://github.com/langchain-ai/langchain-community'
  - url: >-
      https://github.com/langchain-ai/langchain/blob/d79b5813a0b3b243c612b77013768995e46c4337/libs/langchain/langchain/document_loaders/evernote.py#L1-L23
  - url: 'https://huntr.com/bounties/a6b521cf-258c-41c0-9edb-d8ef976abb2a'
tags:
  - osv
  - pip
epss: 0.01647
epssPercentile: 0.75452
ingestedAt: '2026-07-08T18:25:51.746Z'
---

## Overview

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.

## Affected packages

- `langchain-community < 0.3.27`

## Remediation

Upgrade to a patched release:

- `langchain-community 0.3.27`
