6.1

CVE-2022-36033: jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled

Modified
AliasesSUSE-SU-2022:4011-1UBUNTU-CVE-2022-36033DEBIAN-CVE-2022-36033
Published 29-08-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-36033 is a medium (CVSS 6.1) vulnerability in jhy jsoup. EPSS estimates a 1.64% chance of exploitation in the next 30 days, higher than 76.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.64%
0%100%
Low · +0.10 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 3 · Related 2

Timeline

  1. 29-08-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

1.64%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

Increase +0.10 pp

From 1.54% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Jsoup

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard7 products
  • eco-java-gradle-7.5All versions (No fix recorded)
  • eco-java-gradle-7.5.1All versions (No fix recorded)
  • eco-java-gradle-7.6All versions (No fix recorded)
  • eco-java-gradle-7.6.1All versions (No fix recorded)
  • hadoop-fips-3.3.6< 3.3.6-r15 | < 3.3.6-r21
Netapp3 products
Opensuse2 products
  • jsoup&distro=openSUSE Leap 15.3< 1.15.3-150200.3.6.1
  • jsoup&distro=openSUSE Leap 15.4< 1.15.3-150200.3.6.1
Suse2 products
  • jsoup&distro=SUSE Linux Enterprise Module for Development Tools 15 SP3< 1.15.3-150200.3.6.1
  • jsoup&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4< 1.15.3-150200.3.6.1
Debian1 product
  • jsoup< 1.15.3-1
Jhy1 product
Jsoup1 product
Org.jsoup1 product
  • jsoup< 1.15.3
Ubuntu1 product
  • jsoupAll versions (No fix recorded)

9 vendors · 19 products

References

14 links
Show all 14 references