CVE-2022-36033
Summary
| CVE | CVE-2022-36033 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-29 17:15:00 UTC |
| Updated | 2022-12-08 03:48:00 UTC |
| 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.) |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| jsoup release 1.15.3 (2022-Aug-24) |
MISC |
jsoup.org |
|
| CVE-2022-36033 jsoup Vulnerability in NetApp Products | NetApp Product Security |
CONFIRM |
security.netapp.com |
|
| The jsoup cleaner may incorrectly sanitize crafted XSS attempts if SafeList.preserveRelativeLinks is enabled · Advisory · jhy/jsoup · GitHub |
CONFIRM |
github.com |
|
| Release jsoup 1.15.3 · jhy/jsoup · GitHub |
MISC |
github.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 184780 Debian Security Update for jsoup (CVE-2022-36033)
- 355879 Amazon Linux Security Advisory for jsoup : ALAS2023-2023-315
- 357223 Amazon Linux Security Advisory for jsoup : ALAS2-2024-2466
- 378427 Oracle PeopleSoft Enterprise PeopleTools Product Multiple Vulnerabilities (CPUAPR2023)
- 752907 SUSE Enterprise Linux Security Update for jsoup (SUSE-SU-2022:4011-1)
- 903808 Common Base Linux Mariner (CBL-Mariner) Security Update for jsoup (10740)