p PatchFirst

CVE-2022-36033

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

CVSS 6.1 · Medium · EPSS 1.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • jsoupNo fix published
  • jsoup Debian 12Update to 1.15.3-1
  • jsoup Debian 13Update to 1.15.3-1
  • jsoup Debian 14Update to 1.15.3-1
  • and 9 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="jsoup"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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

Published
Updated

Fixes in distributions

  • RHSA-2024:8077 · Red Hat jboss enterprise application platform 7.4 el9 ·
  • RHSA-2024:8075 · Red Hat jboss enterprise application platform 7.4 el7 ·
  • RHSA-2024:8076 · Red Hat jboss enterprise application platform 7.4 el8 ·
  • SUSE-SU-2022:4011-1 · openSUSE Leap 15.3, openSUSE Leap 15.4, SUSE Linux Enterprise Module for Development Tools 15 SP3, SUSE Linux Enterprise Module for Development Tools 15 SP4 ·

Stack: system

Affected products and versions

  • jsoup

    Versions
    • < 1.15.3: Affected

    No fix published

  • jsoup Debian 12

    Affected ranges
    • ECOSYSTEM: < 1.15.3-1

    Update to 1.15.3-1

  • jsoup Debian 13

    Affected ranges
    • ECOSYSTEM: < 1.15.3-1

    Update to 1.15.3-1

  • jsoup Debian 14

    Affected ranges
    • ECOSYSTEM: < 1.15.3-1

    Update to 1.15.3-1

  • jsoup Ubuntu Pro 14.04 LTS

    Versions
    • 1.7.2-1
    • 1.7.3-1
    • 1.7.3-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 16.04 LTS

    Versions
    • 1.8.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 18.04 LTS

    Versions
    • 1.10.2-1
    • 1.10.2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 20.04 LTS

    Versions
    • 1.10.2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 22.04 LTS

    Versions
    • 1.10.2-2
    • 1.14.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 24.04 LTS

    Versions
    • 1.15.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 25.10

    Versions
    • 1.15.3-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 26.10

    Versions
    • 1.15.3-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • jsoup Ubuntu 26.04 LTS

    Versions
    • 1.15.3-1
    • 1.15.3-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →