Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. langchain-community
  4. ›
  5. CVE-2025-6984

CVE-2025-6984: Langchain Community Vulnerable to XML External Entity (XXE) Attacks

September 4, 2025 (updated September 5, 2025)

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.

References

  • github.com/advisories/GHSA-pc6w-59fv-rh23
  • github.com/langchain-ai/langchain-community
  • github.com/langchain-ai/langchain-community/commit/e842452108089524e22c3a2ced851c021884556f
  • github.com/langchain-ai/langchain/blob/d79b5813a0b3b243c612b77013768995e46c4337/libs/langchain/langchain/document_loaders/evernote.py
  • huntr.com/bounties/a6b521cf-258c-41c0-9edb-d8ef976abb2a
  • nvd.nist.gov/vuln/detail/CVE-2025-6984

Code Behaviors & Features

Detect and mitigate CVE-2025-6984 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.27

Fixed versions

  • 0.3.27

Solution

Upgrade to version 0.3.27 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/langchain-community/CVE-2025-6984.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 12 Sep 2025 12:18:16 +0000.