CVE-2022-36033
published medium CVSS 3.1 · 6.1jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jhy | — | jsoup< 1.15.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2466 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-315 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP3 | jsoupnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
| Amazon Linux | AL2 | jsoupnoarch | Listed in advisory | Not stated | ALAS2-2024-2466 |
| SUSE / openSUSE | SLE-15-SP4 | jsoupnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | jsoupnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | jsoupnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoupaarch64 | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoupppc64le | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoups390x | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoupx86_64 | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | jsoup-javadocnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | jsoup-javadocnoarch | Advisory build | 1.15.3-150200.3.6.1 | SUSE-SU-2022:4011-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoup-javadocaarch64 | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoup-javadocppc64le | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoup-javadocs390x | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jsoup-javadocx86_64 | Advisory build | 1.15.3-1.1 | OPENSUSE-SU-2024:12413-1 |
| Amazon Linux | AL2 | jsoupsrc | Listed in advisory | Not stated | ALAS2-2024-2466 |
| Amazon Linux | AL2023 | jsoupnoarch | Listed in advisory | Not stated | ALAS2023-2023-315 |
| Amazon Linux | AL2023 | jsoupsrc | Listed in advisory | Not stated | ALAS2023-2023-315 |
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.)
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jhy | jsoup | < 1.15.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-87 CWE-87: Improper Neutralization of Alternate XSS Syntax
- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4Provider assertions
3GitHub_M · cna
jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3b59b56da3c3c24355006e4fdcb6704e459d6d62877abab79cb50f6b38077bbe
- Ingested
- 23 Sep 2026, 08:01:20 UTC
- Source record
- Official CVE record