CVE-2022-36033jsoup may not sanitize Cross-Site Scripting (XSS) attempts if…
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.)
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jsoup | Fix pending | UBUNTU-CVE-2022-36033 | |
| Ubuntu 26.04 | jsoup | Under investigation | UBUNTU-CVE-2022-36033 | |
| Ubuntu 25.10 | jsoup | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-36033 | |
| Ubuntu 24.04 | jsoup | Under investigation | UBUNTU-CVE-2022-36033 | |
| Ubuntu 22.04 | jsoup | Under investigation | UBUNTU-CVE-2022-36033 | |
| Ubuntu 20.04 | jsoup | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-36033 | |
| Ubuntu 18.04 | jsoup | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-36033 | |
| Ubuntu 16.04 | jsoup | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-36033 | |
| Ubuntu 14.04 | jsoup | Fix pending | UBUNTU-CVE-2022-36033 | |
| Debian 14 | jsoup | Fixed | 1.15.3-1 | DEBIAN-CVE-2022-36033 |
| Debian 13 | jsoup | Fixed | 1.15.3-1 | DEBIAN-CVE-2022-36033 |
| Debian 12 | jsoup | Fixed | 1.15.3-1 | DEBIAN-CVE-2022-36033 |
| Red Hat Enterprise Linux 9 | jsoup | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | jsoup | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | jsoup-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | jsoup | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jsoup-javadoc | Will not fix Out of support scope | ||
| Maven library | org.jsoup:jsoup | Fixed | 1.15.3 | GHSA-gp7f-rwcx-9369 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jhy jsoup: affected: < 1.15.3
References
- https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
- https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
- https://jsoup.org/news/release-1.15.3
- https://security.netapp.com/advisory/ntap-20221104-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.