Back to CVE catalog
CVE-2022-36033

XSS vulnerability in jsoup due to improper sanitization of javascript: URLs

jhy jsoup

At a glance

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

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS summary v3.1

6.1Medium
Published:
Updated:
EPSS:
1.692%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:jhyjsoupAffected versions:
< 1.15.3
Vendor:Red HatA-MQ Clients 2Affected versions:Source does not specify a version range
Vendor:Red HatLogging Subsystem for Red Hat OpenShiftAffected versions:Source does not specify a version range
Vendor:Red HatMigration Toolkit for Applications 6Affected versions:Source does not specify a version range
Vendor:Red HatMigration Toolkit for Runtimes 1 on RHEL 8Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 7Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 8Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 9Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Fuse 7Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Integration Camel K 1Affected versions:Source does not specify a version range

1–10 of 61 · Page 1 of 7

CVSS scores and metrics6
GitHub_M · CVE List / CNA (cna)Primary6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
[email protected] · NVD (Secondary)6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
[email protected] · NVD (Primary)6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE-2022-36033 · OSV (source-vector)6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Red Hat · Red Hat VEX (adp)6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
SUSE · SUSE VEX (adp)6.1 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories11

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences