CVE-2022-36033
What it is
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.)
At a glance
- Exploitability
- Can be exploited over the network without logging in, but needs a user to act. Limited direct impact.
- Exploit odds
- 1.6% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.6% in the next 30 days (EPSS).
- Severity: 6.1 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.6% · EPSS, next 30 days
- Weakness
- CWE-79 · Cross-site scripting
- Record status
- Modified
Affected
- Jsoup < 1.15.3
- Netapp Management Services For Element Software
- Netapp Management Services For Netapp Hci
- Netapp Oncommand Workflow Automation
Attack profile CVSS 3.1 · 6.1
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-36033.md and follow it. Check whether this project is affected by CVE-2022-36033. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
- https://jsoup.org/news/release-1.15.3
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
- https://jsoup.org/news/release-1.15.3
References
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
- https://jsoup.org/news/release-1.15.3
- https://security.netapp.com/advisory/ntap-20221104-0006/
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
- https://jsoup.org/news/release-1.15.3
- https://security.netapp.com/advisory/ntap-20221104-0006/