{"cve":"CVE-2025-6985","nvd":{"published":"2025-10-06T18:15:52.857","modified":"2026-10-19T16:10:00.260","status":"Deferred","description":"The HTMLSectionSplitter class in langchain-text-splitters version 0.3.8 is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing. This vulnerability arises because the class allows the use of arbitrary XSLT stylesheets, which are parsed using lxml.etree.parse() and lxml.etree.XSLT() without any hardening measures. In lxml versions up to 4.9.x, external entities are resolved by default, allowing attackers to read arbitrary local files or perform outbound HTTP(S) fetches. In lxml versions 5.0 and above, while entity expansion is disabled, the XSLT document() function can still read any URI unless XSLTAccessControl is applied. This vulnerability allows remote attackers to gain read-only access to any file the LangChain process can reach, including sensitive files such as SSH keys, environment files, source code, or cloud metadata. No authentication, special privileges, or user interaction are required, and the issue is exploitable in default deployments that enable custom XSLT.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-611"],"references":["https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:11:26.888974865+00:00"},"epss":{"cve":"CVE-2025-6985","score":0.00508,"percentile":0.43101,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-m42m-m8cr-8m58","url":"https://osv.dev/vulnerability/GHSA-m42m-m8cr-8m58","summary":"LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing","modified":"2026-09-10T03:50:30.091012895Z","packages":[{"ecosystem":"PyPI","name":"langchain-text-splitters","purl":"pkg:pypi/langchain-text-splitters","ranges":["<0.3.9"],"fixed":["0.3.9"]}]},{"id":"PYSEC-2026-1520","url":"https://osv.dev/vulnerability/PYSEC-2026-1520","summary":"LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing","modified":"2026-07-07T17:46:47.935773348Z","packages":[{"ecosystem":"PyPI","name":"langchain-text-splitters","purl":"pkg:pypi/langchain-text-splitters","ranges":["<0.3.9"],"fixed":["0.3.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}