Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-ypxj-nhcp-dkan
Summary
LangChain Text Splitters is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing
The HTMLSectionSplitter class in langchain-text-splitters 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.
Aliases
0
alias CVE-2025-6985
1
alias GHSA-m42m-m8cr-8m58
Fixed_packages
0
url pkg:pypi/langchain-text-splitters@0.3.9
purl pkg:pypi/langchain-text-splitters@0.3.9
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-3k4a-kytp-kbhx
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/langchain-text-splitters@0.3.9
Affected_packages
References
0
reference_url https://github.com/langchain-ai/langchain
reference_id
reference_type
scores
url https://github.com/langchain-ai/langchain
1
reference_url https://github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790
reference_id
reference_type
scores
url https://github.com/langchain-ai/langchain/commit/43eef435505a1c907227b724c0c760ad5fc01790
2
reference_url https://github.com/langchain-ai/langchain/pull/31819
reference_id
reference_type
scores
url https://github.com/langchain-ai/langchain/pull/31819
3
reference_url https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331
reference_id
reference_type
scores
url https://huntr.com/bounties/cf78abbb-df3b-43de-b6ee-132b73ff8331
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-6985
reference_id CVE-2025-6985
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2025-6985
5
reference_url https://github.com/advisories/GHSA-m42m-m8cr-8m58
reference_id GHSA-m42m-m8cr-8m58
reference_type
scores
url https://github.com/advisories/GHSA-m42m-m8cr-8m58
Weaknesses
0
cwe_id 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.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
2
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_scorenull
Exploitabilitynull
Weighted_severitynull
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-ypxj-nhcp-dkan