Vulnerabilities in pkg:maven/org.jsoup/jsoup

PACKAGE
Advisory Identifier: GHSA-65r4-943x-97jj
Advisory Summary

CVE-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.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jsoup/jsoup

5 Known Advisory Record(s)

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

CVE Identifier CVE-2026-75140
GHSA Identifier GHSA-65r4-943x-97jj
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Jsoup
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

org.jsoup:jsoup fixed: 1.23.2
<dependency>
    <groupId>org.jsoup</groupId>
    <artifactId>jsoup</artifactId>
    <version>1.23.2</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-75140 Affected Jsoup Versions

1 component(s)
Fixed Versions:
1.23.2
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?
CVE-2026-75140 is a security vulnerability in Jsoup involving jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Jsoup versions are affected?
Affected versions include releases prior to 1.23.2 across affected packages: org.jsoup:jsoup.
What version fixes CVE-2026-75140?
Upgrading to 1.23.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsoup affected?
Yes, org.jsoup:jsoup is affected in releases prior to 1.23.2. Upgrade your dependency to 1.23.2 or later.
What is the CVSS score of CVE-2026-75140?
CVE-2026-75140 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-75140?
CVE-2026-75140 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (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.).
How can I check Maven dependencies for CVE-2026-75140?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jsoup'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}