Lookup for vulnerable packages by Package URL.

Purlpkg:maven/org.jsoup/jsoup@1.15.3
Typemaven
Namespaceorg.jsoup
Namejsoup
Version1.15.3
Qualifiers
Subpath
Is_vulnerablefalse
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-7rfx-9car-wkcs
vulnerability_id VCID-7rfx-9car-wkcs
summary
jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled
jsoup may incorrectly sanitize HTML including `javascript:` URL expressions, which could allow cross-site scripting (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.

### Impact
Sites that accept input HTML from users and use jsoup to sanitize that HTML, may be vulnerable to cross-site scripting (XSS) attacks, if they have enabled `SafeList.preserveRelativeLinks` and do not set an appropriate Content Security Policy.

### Patches
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.

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

### Background and root cause
jsoup includes a [Cleaner](https://jsoup.org/apidocs/org/jsoup/safety/Cleaner.html) component, which is designed to [sanitize input HTML](https://jsoup.org/cookbook/cleaning-html/safelist-sanitizer) against configurable safe-lists of acceptable tags, attributes, and attribute values.

This includes removing potentially malicious attributes such as `<a href="javascript:...">`, which may enable XSS attacks. It does this by validating URL attributes against allowed URL protocols (e.g. `http`, `https`).

However, an attacker may be able to bypass this check by embedding control characters into the href attribute value. This causes the Java URL class, which is used to resolve relative URLs to absolute URLs before checking the URL's protocol, to treat the URL as a relative URL. It is then resolved into an absolute URL with the configured base URI.

For example, `java\tscript:...` would resolve to `https://example.com/java\tscript:...`.

By default, when using a safe-list that allows `a` tags, jsoup will rewrite any relative URLs (e.g. `/foo/`) to an absolute URL (e.g. `https://example.com/foo/`). Therefore, this attack attempt would be successfully mitigated. However, if the option [SafeList.preserveRelativeLinks](https://jsoup.org/apidocs/org/jsoup/safety/Safelist.html#preserveRelativeLinks(boolean)) is enabled (which does not rewrite relative links to absolute), the input is left as-is.

While Java will treat a path like `java\tscript:` as a relative path, as it does not match the allowed characters of a URL spec, browsers may normalize out the control characters, and subsequently evaluate it as a `javascript:` spec inline expression. That disparity then leads to an XSS opportunity.

Sites defining a Content Security Policy that does not allow javascript expressions in link URLs will not be impacted, as the policy will prevent the script's execution.

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [jsoup](https://github.com/jhy/jsoup)
* Email the author of jsoup at [jonathan@hedley.net](mailto:jonathan@hedley.net)

### Credits
Thanks to Jens Häderer, who reported this issue, and contributed to its resolution.
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-36033.json
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-36033.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-36033
reference_id
reference_type
scores
0
value 0.01637
scoring_system epss
scoring_elements 0.81961
published_at 2026-04-18T12:55:00Z
1
value 0.01637
scoring_system epss
scoring_elements 0.81925
published_at 2026-04-13T12:55:00Z
2
value 0.01637
scoring_system epss
scoring_elements 0.8193
published_at 2026-04-12T12:55:00Z
3
value 0.01637
scoring_system epss
scoring_elements 0.81943
published_at 2026-04-11T12:55:00Z
4
value 0.01637
scoring_system epss
scoring_elements 0.81923
published_at 2026-04-09T12:55:00Z
5
value 0.01637
scoring_system epss
scoring_elements 0.81916
published_at 2026-04-08T12:55:00Z
6
value 0.01637
scoring_system epss
scoring_elements 0.8189
published_at 2026-04-07T12:55:00Z
7
value 0.01637
scoring_system epss
scoring_elements 0.81894
published_at 2026-04-04T12:55:00Z
8
value 0.01637
scoring_system epss
scoring_elements 0.81871
published_at 2026-04-02T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-36033
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36033
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36033
3
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
4
reference_url https://github.com/jhy/jsoup
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/jhy/jsoup
5
reference_url https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:44:56Z/
url https://github.com/jhy/jsoup/releases/tag/jsoup-1.15.3
6
reference_url https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:44:56Z/
url https://github.com/jhy/jsoup/security/advisories/GHSA-gp7f-rwcx-9369
7
reference_url https://jsoup.org/news/release-1.15.3
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:44:56Z/
url https://jsoup.org/news/release-1.15.3
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-36033
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-36033
9
reference_url https://security.netapp.com/advisory/ntap-20221104-0006
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://security.netapp.com/advisory/ntap-20221104-0006
10
reference_url https://security.netapp.com/advisory/ntap-20221104-0006/
reference_id
reference_type
scores
0
value 6.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:44:56Z/
url https://security.netapp.com/advisory/ntap-20221104-0006/
11
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018931
reference_id 1018931
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018931
12
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2127078
reference_id 2127078
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2127078
13
reference_url https://github.com/advisories/GHSA-gp7f-rwcx-9369
reference_id GHSA-gp7f-rwcx-9369
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-gp7f-rwcx-9369
14
reference_url https://access.redhat.com/errata/RHSA-2024:6656
reference_id RHSA-2024:6656
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:6656
fixed_packages
0
url pkg:maven/org.jsoup/jsoup@1.15.3
purl pkg:maven/org.jsoup/jsoup@1.15.3
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.jsoup/jsoup@1.15.3
aliases CVE-2022-36033, GHSA-gp7f-rwcx-9369
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-7rfx-9car-wkcs
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:maven/org.jsoup/jsoup@1.15.3