Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.jsoup/jsoup
  4. ›
  5. CVE-2026-75140

CVE-2026-75140: jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations

August 20, 2026 (updated October 5, 2026)

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.

References

  • github.com/advisories/GHSA-65r4-943x-97jj
  • github.com/jhy/jsoup/commit/862ba2f1d48ee95609183dbcfc848c9fd7afc76a
  • github.com/jhy/jsoup/pull/2556
  • github.com/jhy/jsoup/releases/tag/jsoup-1.23.2
  • nvd.nist.gov/vuln/detail/CVE-2026-75140
  • www.vulncheck.com/advisories/jsoup-uncontrolled-resource-consumption-in-xmltreebuilder

Code Behaviors & Features

Detect and mitigate CVE-2026-75140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.23.2

Fixed versions

  • 1.23.2

Solution

Upgrade to version 1.23.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.jsoup/jsoup/CVE-2026-75140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:29 +0000.