jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 5 fixed, 21 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
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.)
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jhy | jsoup | before 1.15.3 | 1.15.3 | Patch available | CNA |
| — | org.jsoup:jsoup (Maven) | before 1.15.3 | 1.15.3 | Patch available | GHSA-gp7f-rwcx-9369 |
- jsoup Vendorjhy Affected before 1.15.3 Fixed in 1.15.3 Patch available CNA
- org.jsoup:jsoup (Maven) Vendor— Affected before 1.15.3 Fixed in 1.15.3 Patch available GHSA-gp7f-rwcx-9369
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:jsoup:jsoup:*:*:*:*:*:*:*:* | before 1.15.3 | Vulnerable | Jsoup |
| cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:management_services_for_netapp_hci:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
- cpe:2.3:a:jsoup:jsoup:*:*:*:*:*:*:*:* Versions before 1.15.3 Vulnerable ·Jsoup
- cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:management_services_for_netapp_hci:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
Remediation
- Fix · CNA jsoup (jhy) Fixed in 1.15.3
- Fix · GHSA-gp7f-rwcx-9369 org.jsoup:jsoup (Maven) Fixed in 1.15.3 Advisory →
Red Hat 5 advisories
- RHSA-2024:8080 Released 2024-10-14 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.19 Security update
- Red Hat JBoss Enterprise Application Platform io.undertow.undertow-core-2.2.33.SP2-redhat-00001.jar, org.bitbucket.b_c.jose4j-0.9.3.redhat-00002.pom, org.jsoup.jsoup-1.15.4.redhat-00003.jar +2
- RHSA-2024:8075 Released 2024-10-14 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.19 Security update
- Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-hal-console-3.3.24-1.Final_redhat_00001.1.el7eap, eap7-hibernate-validator-6.0.23-2.SP1_redhat_00001.1.el7eap, eap7-hibernate-validator-cdi-6.0.23-2.SP1_redhat_00001.1.el7eap +24
- RHSA-2024:8076 Released 2024-10-14 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.19 Security update
- Red Hat JBoss EAP 7.4 for RHEL 8 eap7-hal-console-3.3.24-1.Final_redhat_00001.1.el8eap, eap7-hibernate-validator-6.0.23-2.SP1_redhat_00001.1.el8eap, eap7-hibernate-validator-cdi-6.0.23-2.SP1_redhat_00001.1.el8eap +25
Show 2 more Red Hat advisories
- RHSA-2024:8077 Released 2024-10-14 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.19 Security update
- Red Hat JBoss EAP 7.4 for RHEL 9 eap7-hal-console-3.3.24-1.Final_redhat_00001.1.el9eap, eap7-hibernate-validator-6.0.23-2.SP1_redhat_00001.1.el9eap, eap7-hibernate-validator-cdi-6.0.23-2.SP1_redhat_00001.1.el9eap +25
- RHSA-2024:6656 Released 2024-09-12 · Red Hat rating ModerateMigration Toolkit for Runtimes security, bug fix and enhancement update
- Migration Toolkit for Runtimes 1 on RHEL 8 mtr/mtr-operator-bundle, mtr/mtr-rhel8-operator, mtr/mtr-web-container-rhel8 +1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| A-MQ Clients 2 | Affected | No fix planned: Will not fix |
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet |
| Migration Toolkit for Applications 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat Process Automation 7 | Affected | No fix planned: Will not fix |
| Red Hat Single Sign-On 7 | Affected | No fix yet |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat build of Apache Camel 4 for Quarkus 3 | Affected | No fix planned: Will not fix |
| Red Hat build of Apache Camel for Spring Boot 3 | Affected | No fix yet |
| Red Hat build of Apache Camel for Spring Boot 4 | Affected | No fix planned: Will not fix |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet |
| Red Hat build of Debezium 2 | Affected | No fix yet |
| Red Hat build of OptaPlanner 8 | Affected | No fix yet |
| Red Hat build of Quarkus Native builder | Affected | No fix yet |
| streams for Apache Kafka | Affected | No fix yet |
| Migration Toolkit for Runtimes 1 on RHEL 8 | Fixed | RHSA-2024:6656 |
| Red Hat JBoss EAP 7.4 for RHEL 7 Server | Fixed | RHSA-2024:8075 |
| Red Hat JBoss EAP 7.4 for RHEL 8 | Fixed | RHSA-2024:8076 |
| Red Hat JBoss EAP 7.4 for RHEL 9 | Fixed | RHSA-2024:8077 |
| Red Hat JBoss Enterprise Application Platform | Fixed | RHSA-2024:8080 |
Not affected: 13 products
- Cryostat 3
- OpenShift Serverless
- Red Hat AMQ Broker 7
- Red Hat AMQ Clients
- Red Hat Build of Keycloak
- Red Hat Data Grid 8
- Red Hat JBoss Enterprise Application Platform
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat JBoss Web Server 6
- Red Hat Satellite 6
- Red Hat build of Apache Camel - HawtIO 4
- Red Hat build of Quarkus
Timeline
- 2026-10-02 Threatist record created from CVE-2022-36033
- 2026-10-03 Alias added: GHSA-gp7f-rwcx-9369
References
Advisory 4
More jhy vulnerabilities
- TI-2026-52793 jsoup Uncontrolled Resource Consumption in XmlTreeBuilder CVSS 4.0HIGH 8.7
- TI-2026-50103 jsoup: Cleaner may expose markup with custom raw-text elements CVSS 3.1MEDIUM 4.7
Sources
- CVE-2022-36033 · CVE Program
- CVE-2022-36033 · NVD
- FIRST EPSS
- GHSA-gp7f-rwcx-9369 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-36033 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences