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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jsoup » jsoup | < 1.23.2 | 1.23.2 |
Blast radius
75% of the dependent artifacts (19,751) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- org.renjin.cran » testthat3,000 usages
- io.quarkus » quarkus-junit52,452 usages
- com.android.tools.build » gradle2,197 usages
- io.quarkus » quarkus-extension-maven-plugin1,796 usages
- clj-http » clj-http1,596 usages
- org.jetbrains.dokka » dokka-maven-plugin1,520 usages
- io.quarkus » quarkus-maven-plugin1,484 usages
- org.apache.maven.plugins » maven-project-info-reports-plugin1,458 usages
- midje » midje1,362 usages
- org.owasp » dependency-check-maven1,289 usages
- io.quarkus » quarkus-junit5-internal1,163 usages
- io.quarkus » quarkus-arc-deployment1,077 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-75140
- Webhttps://github.com/jhy/jsoup/pull/2556
- Webhttps://github.com/jhy/jsoup/commit/862ba2f1d48ee95609183dbcfc848c9fd7afc76a
- Packagehttps://github.com/jhy/jsoup
- Webhttps://github.com/jhy/jsoup/releases/tag/jsoup-1.23.2
- Webhttps://www.vulncheck.com/advisories/jsoup-uncontrolled-resource-consumption-in-xmltreebuilder
