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.
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
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
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.19 Security update
Red Hat Security Advisory: Migration Toolkit for Runtimes security, bug fix and enhancement update
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?
Is CVE-2022-36033 actively exploited?
What is the CVSS score for CVE-2022-36033?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.