CVE-2022-36033 jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2022-36033?
CVE-2022-36033 is a medium-severity vulnerability in Netapp Oncommand Workflow Automation, published on 29 Aug 2022.
Official 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.)
Which versions are affected by CVE-2022-36033?
2 open source packages ship an affected version, including org.jsoup:jsoup. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
org.jsoup:jsoup Maven | All versions | 1.15.3 |
org.jsoup:jsoup Maven | All versions | 1.15.3 |
Linux distribution packages (4)
jsoup SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 1.15.3-150200.3.6.1 |
jsoup SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 1.15.3-150200.3.6.1 |
jsoup openSUSE:Leap 15.3 | All versions | 1.15.3-150200.3.6.1 |
jsoup openSUSE:Leap 15.4 | All versions | 1.15.3-150200.3.6.1 |
Products include Jsoup Jsoup, Netapp Management Services for Element Software, Netapp Management Services for Netapp Hci, Netapp Oncommand Workflow Automation.
How do I fix CVE-2022-36033?
Upgrade org.jsoup:jsoup to 1.15.3 or later.
Is CVE-2022-36033 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36033 exists.
Other vulnerabilities in Netapp Oncommand Workflow Automation
Sources
Also known as AZL-10740, AZL-36946, CLSA-2026-1784880925, CLSA-2026-1786713516, DEBIAN-CVE-2022-36033, GHSA-gp7f-rwcx-9369 and 5 more.