Vulnerabilities in pkg:maven/org.jsoup/jsoup
PACKAGECVE-2026-75140 is a HIGH (CVSS 7.5) jsoup xmltreebuilder vulnerable to memory vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Jsoup libraries in the Maven ecosystem. The issue involves jsoup xmltreebuilder vulnerable to memory exhaustion through deeply nested namespace declarations. Remediation is available by upgrading affected packages to version 1.23.2.
pkg:maven/org.jsoup/jsoup
Vulnerability advisories affecting package pkg:maven/org.jsoup/jsoup. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-65r4-943x-97jj | CVE-2026-75140 | HIGH | jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations |
| GHSA-pmhh-3w7g-xqp8 | CVE-2026-71497 | MODERATE | jsoup: Cleaner may expose markup with custom raw-text elements |
| GHSA-48rh-qgjr-xfj6 | CVE-2015-6748 | MODERATE | Improper Neutralization of Input During Web Page Generation in Jsoup |
| GHSA-gp7f-rwcx-9369 | CVE-2022-36033 | MODERATE | jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled |
| GHSA-m72m-mhq2-9p6c | CVE-2021-37714 | HIGH | Uncaught Exception in jsoup |
CVE-2026-75140 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-75140
To remediate this vulnerability, upgrade all affected Jsoup dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.23.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.jsoup
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-75140, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jsoup
Analyze the terminal output to locate any version of Jsoup in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.23.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jsoup command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Jsoup, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-75140 Affected Jsoup Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jsoup:jsoup
|
Maven |
< 1.23.2
|
1.23.2
|
References
Frequently Asked Questions
What is CVE-2026-75140?
Which Jsoup versions are affected?
What version fixes CVE-2026-75140?
Is jsoup affected?
What is the CVSS score of CVE-2026-75140?
What CWE is associated with CVE-2026-75140?
How can I check Maven dependencies for CVE-2026-75140?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-65r4-943x-97jj",
"modified" : "2026-10-05T22:33:36Z",
"published" : "2026-08-20T18:30:54Z",
"aliases" : [ "CVE-2026-75140" ],
"summary" : "jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jsoup:jsoup"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.23.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-75140"
}, {
"type" : "WEB",
"url" : "https://github.com/jhy/jsoup/pull/2556"
}, {
"type" : "WEB",
"url" : "https://github.com/jhy/jsoup/commit/862ba2f1d48ee95609183dbcfc848c9fd7afc76a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jhy/jsoup"
}, {
"type" : "WEB",
"url" : "https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.2"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/jsoup-uncontrolled-resource-consumption-in-xmltreebuilder"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-05T22:33:36Z",
"nvd_published_at" : "2026-08-20T16:18:02Z"
}
}