CVEfocus › CVE database › CVE-2022-36033

CVE-2022-36033jsoup may not sanitize Cross-Site Scripting (XSS) attempts if…

CVSS 6.1 MediumEPSS 1.7% (higher than 78% of CVEs)Published 2022-08-29Updated 2025-04-22Assigner: GitHub_M

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

CWE-79CWE-87

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

4Fixed
2Fix pending
3Under investigation
9Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10jsoupFix pendingUBUNTU-CVE-2022-36033
Ubuntu 26.04jsoupUnder investigationUBUNTU-CVE-2022-36033
Ubuntu 25.10jsoupWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-36033
Ubuntu 24.04jsoupUnder investigationUBUNTU-CVE-2022-36033
Ubuntu 22.04jsoupUnder investigationUBUNTU-CVE-2022-36033
Ubuntu 20.04jsoupWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-36033
Ubuntu 18.04jsoupWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-36033
Ubuntu 16.04jsoupWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-36033
Ubuntu 14.04jsoupFix pendingUBUNTU-CVE-2022-36033
Debian 14jsoupFixed1.15.3-1DEBIAN-CVE-2022-36033
Debian 13jsoupFixed1.15.3-1DEBIAN-CVE-2022-36033
Debian 12jsoupFixed1.15.3-1DEBIAN-CVE-2022-36033
Red Hat Enterprise Linux 9jsoupWill not fix
Will not fix
Red Hat Enterprise Linux 8jsoupWill not fix
Will not fix
Red Hat Enterprise Linux 8jsoup-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 7jsoupWill not fix
Out of support scope
Red Hat Enterprise Linux 7jsoup-javadocWill not fix
Out of support scope
Maven libraryorg.jsoup:jsoupFixed1.15.3GHSA-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.

References

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.