Skip to main content
MEDIUM

CVE-2022-36033

CVSS v3

6.1

MEDIUM

EPSS Score

1.5 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for jsoup.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • org.jsoup:jsoupMavenall versions · fixed in 1.15.3

Vendor advisories

  • CVE-2022-36033 Red Hat Product Security136 products fixed · 25 known affected

    jsoup: The jsoup cleaner may incorrectly sanitize crafted XSS attempts if SafeList.preserveRelativeLinks is enabled

    jsoup as a component of A-MQ Clients 2 · org.jsoup/jsoup.src as a component of Logging Subsystem for Red Hat OpenShift · org.jsoup/jsoup.src as a component of Migration Toolkit for Applications 6

  • RHSA-2024:8080 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:8075 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:8076 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:8077 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update

  • RHSA-2024:6656 Red Hat Product Security15 products fixed

    Red Hat Security Advisory: Migration Toolkit for Runtimes security, bug fix and enhancement update

Full record on NVD

Description

jsoup is a Java HTML parser, built for HTML editing, cleaning, scraping, and cross-site scripting (XSS) safety. jsoup may incorrectly sanitize HTML including `javascript:` URL expressions, which could allow 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. 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. To remediate this issue without immediately upgrading: - disable `SafeList.preserveRelativeLinks`, which will rewrite input URLs as absolute URLs - ensure an appropriate [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) is defined. (This should be used regardless of upgrading, as a defence-in-depth best practice.)

Technical details

Published
2022-08-29

Frequently asked questions

What is CVE-2022-36033?

jsoup is a Java HTML parser, built for HTML editing, cleaning, scraping, and cross-site scripting (XSS) safety. jsoup may incorrectly sanitize HTML including `javascript:` URL expressions, which could allow 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. 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. To remediate this issue without immediately upgrading: - disable `SafeList.preserveRelativeLinks`, which will rewrite input URLs as absolute URLs - ensure an appropriate [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) is defined. (This should be used regardless of upgrading, as a defence-in-depth best practice.)

Is CVE-2022-36033 actively exploited?

Active exploitation of CVE-2022-36033 has not been confirmed. Its EPSS score was 1.5% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-36033?

CVE-2022-36033 has a CVSS v3 base score of 6.1 (MEDIUM severity).

Running jsoup? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month