# CVE-2022-36033: jsoup: jsoup is a Java HTML parser, built for HTML editing, cleaning, scraping, and cross-site scripting (XSS) safety

CVE-2022-36033 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2022-36033, released August 29, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-36033
- Priority: Routine
- CVSS: 6.1 (medium)
- EPSS: 0.0164
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 29, 2022

## 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.)

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | jsoup Debian 12.15 (bookworm) | 1.15.3-1 | [DEBIAN-CVE-2022-36033](https://patchblox.com/security/data/fix/linux/debian-cve-2022-36033.md) | Aug 29, 2022 |
| Linux | jsoup Debian 13.5 (trixie) | 1.15.3-1 | [DEBIAN-CVE-2022-36033](https://patchblox.com/security/data/fix/linux/debian-cve-2022-36033.md) | Aug 29, 2022 |
| Linux | jsoup Debian 14 | 1.15.3-1 | [DEBIAN-CVE-2022-36033](https://patchblox.com/security/data/fix/linux/debian-cve-2022-36033.md) | Aug 29, 2022 |
| Linux | jsoup amzn 2023 | 1.13.1-9.amzn2023.0.5 | [ALAS2023-2023-315](https://patchblox.com/security/data/fix/linux/alas2023-2023-315.md) | Aug 17, 2023 |
| Linux | jsoup-javadoc amzn 2023 | 1.13.1-9.amzn2023.0.5 | [ALAS2023-2023-315](https://patchblox.com/security/data/fix/linux/alas2023-2023-315.md) | Aug 17, 2023 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
