HIGH 7.5

CVE-2026-75140

jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations

Description

jsoup through 1.23.2, fixed in commit 862ba2f, contains an uncontrolled resource consumption vulnerability in XmlTreeBuilder that allows remote attackers to exhaust JVM heap memory by supplying a deeply nested XML document with uniquely-namespaced elements. The builder copies the entire inherited namespace map on every start element, causing quadratic time and memory complexity, which attackers can exploit to trigger an OutOfMemoryError and terminate the application.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jsoup » jsoup
< 1.23.2
1.23.2

Blast radius

1affected artifacts
87affected versions
26,176dependent artifacts (est.)
1,937,167dependent versions

75% of the dependent artifacts (19,751) still pull an affected version in their latest release.

DepthDependent versions
Direct
151,149
2 hops
519,209
3 hops
769,938
4 hops
319,934
5 hops
122,122
6 hops
54,815

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.