Skip to content
Fencer Intel
medium 6.1

CVE-2022-36033 json

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

published 4y ago modified last mo. also GHSA-gp7f-rwcx-9369 , EUVD-2022-6828

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 76%
public exploits
0
none known

Summary

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

Patch / fix

  • maven org.jsoup:jsoup 1.15.3
  • jsoup jsoup 1.15.3
  • jsoup Debian 14, Debian 13, Debian 12 1.15.3-1

debian advisories DEBIAN-CVE-2022-36033

  • eap7-jsoup jboss enterprise application platform 7.4 1.15.4-1.redhat_00003.1.el9eap
  • eap7-wildfly jboss enterprise application platform 7.4 7.4.19-1.GA_redhat_00002.1.el9eap
  • eap7-xalan-j2 jboss enterprise application platform 7.4 2.7.1-37.redhat_00015.1.el9eap
  • eap7-hal-console jboss enterprise application platform 7.4 3.3.24-1.Final_redhat_00001.1.el9eap
  • eap7-ironjacamar jboss enterprise application platform 7.4 1.5.18-1.Final_redhat_00001.1.el9eap
  • eap7-jbossws-cxf jboss enterprise application platform 7.4 5.4.12-1.Final_redhat_00001.1.el9eap
  • eap7-undertow-jastow jboss enterprise application platform 7.4 2.0.15-1.Final_redhat_00001.1.el9eap
  • eap7-wildfly-modules jboss enterprise application platform 7.4 7.4.19-1.GA_redhat_00002.1.el9eap

red hat advisories RHSA-2024:8077RHSA-2024:8075RHSA-2024:8076

  • jsoup SLE Module for Development Tools 15 SP4, SLE Module for Development Tools 15 SP3, openSUSE Leap 15.4 +1 more 1.15.3-150200.3.6.1

suse advisories SUSE-SU-2022:4011-1

Is CVE-2022-36033 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-36033 updated cvss 6.1

jsoup: The jsoup cleaner may incorrectly sanitize crafted XSS attempts if SafeList.preserveRelativeLinks is enabled

  • Red Hat A-MQ Clients 2 jsoup
    affected: no fix planned “Will not fix”
  • Red Hat Logging Subsystem for Red Hat OpenShift jsoup
    affected: no fix available
  • Red Hat Migration Toolkit for Applications 6 jsoup Red Hat build of Apache Camel 4 for Quarkus 3 jsoup
    affected: no fix planned “Will not fix”
  • Red Hat build of Apache Camel for Spring Boot 3 jsoup
    affected: no fix available
  • Red Hat build of Apache Camel for Spring Boot 4 jsoup
    affected: no fix planned “Will not fix”
  • Red Hat build of Apicurio Registry 2 jsoup Red Hat build of Debezium 2 jsoup Red Hat build of OptaPlanner 8 jsoup Red Hat build of Quarkus Native builder jsoup
    affected: no fix available
  • Red Hat Enterprise Linux 7 jsoup, jsoup-javadoc
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 jsoup, jsoup-javadoc Red Hat Enterprise Linux 9 jsoup Red Hat Fuse 7 jsoup Red Hat Integration Camel K 1 jsoup Red Hat JBoss Data Grid 7 jsoup
    affected: no fix planned “Will not fix”
show 11 more
  • Red Hat JBoss Enterprise Application Platform 6 jsoup
    affected: no fix planned “Out of support scope”
  • Red Hat Process Automation 7 jsoup
    affected: no fix planned “Will not fix”
  • Red Hat Single Sign-On 7 jsoup
    affected: no fix available
  • Red Hat Software Collections rh-maven36-jsoup, rh-maven36-jsoup-javadoc
    affected: no fix planned “Will not fix”
  • Red Hat streams for Apache Kafka jsoup
    affected: no fix available
  • Red Hat Migration Toolkit for Runtimes 1 on RHEL 8 mtr/mtr-rhel8-operator 1.2-17, mtr/mtr-operator-bundle 1.2-27, mtr/mtr-web-container-rhel8 latest, mtr/mtr-web-executor-container-rhel8 latest
    fixed: vendor fix RHSA-2024:6656
  • Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-jsoup 1.15.4-1.redhat_00003.1.el7eap, eap7-xalan-j2 2.7.1-37.redhat_00015.1.el7eap, eap7-wildfly 7.4.19-1.GA_redhat_00002.1.el7eap, eap7-jboss-cert-helper 1.1.3-1.redhat_00001.1.el7eap, eap7-hal-console 3.3.24-1.Final_redhat_00001.1.el7eap, eap7-ironjacamar 1.5.18-1.Final_redhat_00001.1.el7eap, +21 more
    fixed: vendor fix RHSA-2024:8075
  • Red Hat JBoss EAP 7.4 for RHEL 8 eap7-jsoup 1.15.4-1.redhat_00003.1.el8eap, eap7-xalan-j2 2.7.1-37.redhat_00015.1.el8eap, eap7-wildfly 7.4.19-1.GA_redhat_00002.1.el8eap, eap7-jboss-cert-helper 1.1.3-1.redhat_00001.1.el8eap, eap7-hal-console 3.3.24-1.Final_redhat_00001.1.el8eap, eap7-ironjacamar 1.5.18-1.Final_redhat_00001.1.el8eap, +22 more
    fixed: vendor fix RHSA-2024:8076
  • Red Hat JBoss EAP 7.4 for RHEL 9 eap7-jsoup 1.15.4-1.redhat_00003.1.el9eap, eap7-xalan-j2 2.7.1-37.redhat_00015.1.el9eap, eap7-wildfly 7.4.19-1.GA_redhat_00002.1.el9eap, eap7-jboss-cert-helper 1.1.3-1.redhat_00001.1.el9eap, eap7-hal-console 3.3.24-1.Final_redhat_00001.1.el9eap, eap7-ironjacamar 1.5.18-1.Final_redhat_00001.1.el9eap, +22 more
    fixed: vendor fix RHSA-2024:8077
  • Red Hat JBoss Enterprise Application Platform jsoup 1.15.4.redhat-00003
    fixed: vendor fix RHSA-2024:8080
  • Red Hat Cryostat 3 jsoup Red Hat OpenShift Serverless jsoup Red Hat AMQ Broker 7 jsoup Red Hat AMQ Clients jsoup Red Hat build of Apache Camel - HawtIO 4 jsoup Red Hat Build of Keycloak jsoup
    +7 more products
    Red Hat build of Quarkus jsoup Red Hat Data Grid 8 jsoup Red Hat JBoss Enterprise Application Platform pom.xml, c3 0.6.0, c3 0.7.1, d3 5.9.2, fs 2.1.2, ip 2.0.0, +1561 more Red Hat JBoss Enterprise Application Platform 8 jsoup Red Hat JBoss Enterprise Application Platform Expansion Pack jsoup Red Hat JBoss Web Server 6 jsoup Red Hat Satellite 6 jsoup
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
last yr.

Exploit prediction

1.64% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.jsoup:jsoup
<1.15.3
1.15.3

Affected products

  • jhy jsoup

Classification

Weakness
  • CWE-87 Improper Neutralization of Alternate XSS Syntax
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.