{"schemaVersion":3,"id":"CVE-2025-6985","aliases":["GHSA-m42m-m8cr-8m58","PYSEC-2026-1520","CGA-9x7r-7m2q-57g7","CGA-c5gh-jr8v-27cr","CGA-gx4r-rqm5-5p95","CGA-xxfc-gxgx-86fg","CGA-585r-gp6x-rqx6","CGA-5rf3-8548-qp93","CGA-9f83-88hx-m2vg","CGA-f5qj-r789-vf9c","CGA-ff2c-2m4h-68c9","CGA-g764-534r-mqjf","CGA-mrw8-p7rm-47qp","CGA-p748-75jp-pwqf","CGA-pf9w-cp4r-w2gm","CGA-v8c3-4927-v7j4","CGA-vvw3-fx5m-m4fp","CGA-x7c7-cpwx-rmjf"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-10-06T17:58:29.078Z","modified":"2025-10-06T18:10:28.811Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00508,"percentile":0.42171,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00508},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00508,"percentile":0.42171}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00508,"percentile":0.42171}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference","description":"The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/611.html"}],"affected":[{"vendor":"chainguard","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/open-webui","purlType":"apk","versions":[{"text":"< 0.6.33-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.33-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"open-webui-compat","name":"open-webui-compat","label":"open-webui-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/open-webui-compat","purlType":"apk","versions":[{"text":"< 0.6.33-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.33-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-langchain-text-splitters","name":"py3-langchain-text-splitters","label":"py3-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-supported-langchain-text-splitters","name":"py3-supported-langchain-text-splitters","label":"py3-supported-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-supported-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-langchain-text-splitters","name":"py3.10-langchain-text-splitters","label":"py3.10-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-langchain-text-splitters","name":"py3.11-langchain-text-splitters","label":"py3.11-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-langchain-text-splitters","name":"py3.12-langchain-text-splitters","label":"py3.12-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-langchain-text-splitters","name":"py3.13-langchain-text-splitters","label":"py3.13-langchain-text-splitters","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-langchain-text-splitters","purlType":"apk","versions":[{"text":"< 0.3.11-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.11-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/open-webui","purlType":"apk","versions":[{"text":"< 0.6.33-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.33-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"open-webui-compat","name":"open-webui-compat","label":"open-webui-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/open-webui-compat","purlType":"apk","versions":[{"text":"< 0.6.33-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.33-r0","eol":null,"hubHref":null},{"vendor":"langchain-ai","product":"langchain-ai/langchain","name":"langchain-ai/langchain","label":"langchain-ai/langchain","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ latest","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ latest","eol":null,"hubHref":"/vendor/langchain-ai/langchain-ailangchain"},{"vendor":"PyPI","product":"langchain-text-splitters","name":"langchain-text-splitters","label":"langchain-text-splitters","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/langchain-text-splitters","purlType":"pypi","versions":[{"text":"< 0.3.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.9","eol":null,"hubHref":null}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331","label":"huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331","hostname":"huntr.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6985","label":"nvd.nist.gov/vuln/detail/CVE-2025-6985","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchain/pull/31819","label":"github.com/langchain-ai/langchain/pull/31819","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790","label":"github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/langchain-ai/langchain","label":"github.com/langchain-ai/langchain","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/langchain-text-splitters","label":"pypi.org/project/langchain-text-splitters","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-m42m-m8cr-8m58","label":"github.com/advisories/GHSA-m42m-m8cr-8m58","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-CWG3-MWH5-GF68"]},"timeline":[{"kind":"published","date":"2025-10-06T17:58:29.078Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-06T18:10:28.811Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:22:51.328Z","stale":false,"partial":false}}