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.
Published: 2026-08-20
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: OutOfMemoryError leading to denial of service
Action: Immediate Patch
AI Analysis

Impact

The vulnerability in jsoup allows remote attackers to feed a deeply nested XML document containing uniquely‑namespaced elements to XmlTreeBuilder. The parser repeatedly copies the inherited namespace map for each start element, resulting in quadratic time and memory usage. This excessive consumption can exhaust JVM heap memory, causing an OutOfMemoryError that terminates the application, effectively creating a denial‑of‑service condition. The weaknesses correspond to CWE‑770: Uncontrolled Resource Consumption and CWE‑1050.

Affected Systems

The flaw affects the jsoup library version 1.23.2 and earlier. Any application that parses untrusted XML input using these jsoup releases is potentially vulnerable; the vendor notation is jhy:soup.

Risk and Exploitability

The CVSS score of 8.7 signifies high severity, and with an EPSS score of 0.00525 (0.525%), the lack of an assigned KEV tag suggests no known public exploitation yet. The vulnerability can be triggered remotely by submitting a carefully crafted XML payload. Circumventing the quadratic behavior depends solely on supplying a deeply nested, uniquely‑namespaced structure; no additional privileges or precondition beyond input are required.

Generated by OpenCVE AI on September 1, 2026 at 17:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade jsoup to a version that incorporates the fix in commit 862ba2f (1.23.3 or later).
  • If an immediate upgrade is impossible, restrict the size or nesting depth of XML input processed by XmlTreeBuilder, or reject untrusted XML through a whitelist.
  • Apply Java heap limits (e.g., -Xmx) and monitor for OutOfMemoryError to contain damage before it brings down the service.

Generated by OpenCVE AI on September 1, 2026 at 17:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1050
References
Metrics threat_severity

None

threat_severity

Important


Fri, 21 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Jhy
Jhy jsoup
Vendors & Products Jhy
Jhy jsoup

Fri, 21 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
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.
Title jsoup Uncontrolled Resource Consumption in XmlTreeBuilder
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-21T11:21:02.259Z

Reserved: 2026-08-17T18:39:57.661Z

Link: CVE-2026-75140

cve-icon Vulnrichment

Updated: 2026-08-20T17:04:11.821Z

cve-icon NVD

Status : Received

Published: 2026-08-20T16:18:02.030

Modified: 2026-08-20T17:19:41.990

Link: CVE-2026-75140

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-20T15:56:50Z

Links: CVE-2026-75140 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T18:00:18Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-770

    Allocation of Resources Without Limits or Throttling