Skip to content

← Public intelligence

Maven package

org.jsoup:jsoup

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

5 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.7MavenAmendedPublished

    jsoup XmlTreeBuilder vulnerable to memory exhaustion through deeply nested namespace declarations

    CVE-2026-75140 · GHSA-65r4-943x-97jj

    Affected
    • Maven org.jsoup:jsoup < 1.23.2
    Fixed in
    1.23.2· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.23.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 4.7MavenAmendedPublished

    jsoup: Cleaner may expose markup with custom raw-text elements

    CVE-2026-71497 · GHSA-pmhh-3w7g-xqp8

    Affected
    • Maven org.jsoup:jsoup >= 1.14.3, < 1.23.1
    Fixed in
    1.23.1· Vendor fix available
    Issue
    When a custom Safelist permits certain raw-text elements, jsoup may incorrectly sanitize malformed HTML containing a tag name that ends in a control character. The tag may acquire the parsing behavior of a different element, causing content that should remain text to be emitted as active markup after serialization and potentially allowing XSS. jsoup’s built-in Safelists are unaffected. Patches Upgrade to jsoup 1.23.1. Workarounds Until upgrading, do not permit raw-text elements in custom Safelists used to clean untrusted HTML. Additional security considerations This fix addresses malformed tag-name handling only. Permitting raw-text elements in a custom Safelist does not make their contents inherently safe. For example, applications that permit style must apply appropriate CSS safeguards separately, because jsoup does not parse or sanitize CSS.

    Recommended action: Upgrade to 1.23.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 6.1MavenPublished

    jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled

    CVE-2022-36033 · GHSA-gp7f-rwcx-9369

    Affected
    • Maven org.jsoup:jsoup < 1.15.3
    Fixed in
    1.15.3· Vendor fix available
    Issue
    jsoup may incorrectly sanitize HTML including javascript: URL expressions, which could allow cross-site scripting (XSS) attacks when a reader subsequently clicks that link. If the non-default SafeList.preserveRelativeLinks option is enabled, HTML including javascript: URLs that have been crafted with control characters will not be sanitized. If the site that this HTML is published on does not set a Content Security Policy, an XSS attack is then possible. Impact Sites that accept input HTML from users and use jsoup to sanitize that HTML, may be vulnerable to cross-site scripting (XSS) attacks, if they have enabled SafeList.preserveRelativeLinks and do not set an appropriate Content Security Policy. Patches This issue is patched in jsoup 1.15.3. Users should upgrade to this version. Additionally, as the unsanitized input may have been persisted, old content should be cleaned again using the updated version. Workarounds To remediate this issue without immediately upgrading: - disable…

    Recommended action: Upgrade to 1.15.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Medium, CVSS 6.1MavenPublished

    Improper Neutralization of Input During Web Page Generation in Jsoup

    CVE-2015-6748 · GHSA-48rh-qgjr-xfj6

    Affected
    • Maven org.jsoup:jsoup >= 1.6.0, <= 1.8.2
    Fixed in
    1.8.3· Vendor fix available
    Issue
    Cross-site scripting (XSS) vulnerability in jsoup before 1.8.3.

    Recommended action: Upgrade to 1.8.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. High, CVSS 7.5MavenPublished

    Uncaught Exception in jsoup

    CVE-2021-37714 · GHSA-m72m-mhq2-9p6c

    Affected
    • Maven org.jsoup:jsoup < 1.14.2
    Fixed in
    1.14.2· Vendor fix available
    Issue
    Impact What kind of vulnerability is it? Who is impacted? Those using jsoup to parse untrusted HTML or XML may be vulnerable to DOS attacks. If the parser is run on user supplied input, an attacker may supply content that causes the parser to get stuck (loop indefinitely until cancelled), to complete more slowly than usual, or to throw an unexpected exception. This effect may support a denial of service attack. Patches Has the problem been patched? What versions should users upgrade to? Users should upgrade to jsoup 1.14.2 Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading? Users may rate limit input parsing. Users should limit the size of inputs based on system resources. Users should implement thread watchdogs to cap and timeout parse runtimes.

    Recommended action: Upgrade to 1.14.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →