# CVE-2022-36033: jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled

Source: https://junglewise.ai/threats/cve-2022-36033-jsoup-may-not-sanitize-code-injection-xss-attempts-if-safelist  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-09-01  
License: CC BY 4.0 with a link back

CVE-2022-36033 · Severity: low · CVSS 3.1 · Published 2022-09-01

jsoup may not sanitize code injection XSS attempts if SafeList.preserveRelativeLinks is enabled

Technologies: [org.jsoup:jsoup (Maven)](https://junglewise.ai/threats/technologies/org-jsoup-jsoup). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-36033 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-36033 being exploited in the wild.

**How severe is CVE-2022-36033?** Low severity, with a CVSS score of 3.1, published 1 September 2022.

**Which products and versions are affected?** org.jsoup:jsoup (Maven) ECOSYSTEM:introduced=0,fixed=1.15.3.

**Is there a fix for CVE-2022-36033?** Yes. org.jsoup:jsoup (Maven): upgrade to 1.15.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-36033?** Check whether you run org.jsoup:jsoup (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.jsoup:jsoup (Maven): upgrade to 1.15.3 or later

  ```sh
  # set org.jsoup:jsoup to 1.15.3 in your pom.xml or build.gradle
  ```


## Affected products

- org.jsoup:jsoup (Maven) ECOSYSTEM:introduced=0,fixed=1.15.3

## Identifiers

- CVE-2022-36033
- GHSA-gp7f-rwcx-9369

## Related threats

- [jsoup XML namespace handling denial of service](https://junglewise.ai/threats/cve-2026-75140-jsoup-xml-namespace-handling-denial-of-service)
- [jsoup XSS in Cleaner with custom Safelist raw-text elements](https://junglewise.ai/threats/cve-2026-71497-jsoup-xss-in-cleaner-with-custom-safelist-raw-text-elements)
- [Improper Neutralization of Input During Web Page Generation in Jsoup](https://junglewise.ai/threats/cve-2015-6748-improper-neutralization-of-input-during-web-page-generation-in)
- [Uncaught Exception in jsoup](https://junglewise.ai/threats/cve-2021-37714-uncaught-exception-in-jsoup)
