Medium severity · published Aug 29, 2022
CVE-2022-36033
jsoup is a Java HTML parser, built for HTML editing, cleaning, scraping, and cross-site scripting (XSS) safety
6.1
CVSS
1.6%
EPSS
No
On KEV
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.)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.6% · higher than 76% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JS
Jsoup · Jsoup
before 1.15.3 · source: NVD
MS
Management Services For Element Software · Netapp
All versions, or not specified · source: NVD
MS
Management Services For Netapp Hci · Netapp
All versions, or not specified · source: NVD
OW
Oncommand Workflow Automation · Netapp
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-36033
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-36033
Release Notes
https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
Exploit
https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
Release Notes
https://jsoup.org/news/release-1.15.3
Third Party Advisory
https://security.netapp.com/advisory/ntap-20221104-0006/
More from Jsoup
7.5
CVE-2021-37714
Crafted input may cause the jsoup HTML and XML parser to get stuck, timeout, or throw unchecked exceptions
6.1
CVE-2015-6748
Cross-site scripting (XSS) vulnerability in jsoup before 1.8.3
