CVE-2025-6984
Sensitive Information Disclosure Due to Insecure XML Parsing in langchain-ai/langchain
Record summary
CVE-2025-6984 has a selected CVSS score of 7.5 (high); EIP currently links 1 Nuclei template.
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.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Sep 4, 2025 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
langchain-ai/langchainBrowse langchain-ai / langchain-ai/langchain | CVE List | Through latest | affected |
langchain-communityBrowse PyPI / langchain-community | GitHub Advisory | Before 0.3.27 · Fixed in 0.3.27 | affected |
Nuclei templates
1ProjectDiscoveryHIGHlangchain-ai langchain - XML External Entity InjectionCVSS 7.5
langchain-ai/langchain 0.3.63 contains an XML External Entity (XXE) injection caused by insecure XML parsing in EverNoteLoader using etree.iterparse(), letting attackers disclose sensitive information, exploit requires crafted malicious XML payload.
Impact
Attackers can disclose sensitive local files, potentially exposing critical system information.
Remediation
Update to the latest version that disables external entity references in XML parsing.
Source: ProjectDiscovery