CVE-2022-36033
MEDIUM 6.1CVSS 3.1jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled
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 is defined. (This should be used regardless of upgrading, as a defence-in-depth best practice.)
- Published
- 29 Aug 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gp7f-rwcx-9369
- Sources
- NVDJSONOSV GHSA-gp7f-rwcx-9369JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jsoup | jsoupcpe:2.3:a:jsoup:jsoup:*:*:*:*:*:*:*:* |
< 1.15.3 | 1.15.3 |
| NVD | netapp | management_services_for_element_softwarecpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | management_services_for_netapp_hcicpe:2.3:a:netapp:management_services_for_netapp_hci:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | oncommand_workflow_automationcpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Maven | org.jsoup:jsoup | < 1.15.3 | 1.15.3 |
References
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3 · Release Notes, Third Party Advisory, WEB
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369 · Exploit, Third Party Advisory, WEB
- https://jsoup.org/news/release-1.15.3 · Release Notes, Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20221104-0006/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-36033 · ADVISORY
- https://github.com/jhy/jsoup · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Aug 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Sep 2022)