Skip to content
Noroxi
CVE-2022-36033· NVD / CVE Program· CNA GitHub_M

jsoup may not sanitize Cross-Site Scripting (XSS) attempts if SafeList.preserveRelativeLinks is enabled

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

MediumCVSS 6.1 · v3.1—No exploit Fix available
Published
Aug 29, 2022
Updated
Jun 17, 2026
EPSS
1.5% · 74th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

24

Monitor

Low priority for now.

CVSS
24 / 40 · 6.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.5%

CISA SSVC decision

Exploitation
proof of concept
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
6.1
CNA · GitHub_M
6.1
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
jsoupjsoup
netappmanagement services for element software
netappmanagement services for netapp hci
netapponcommand workflow automation

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • jsoup jsoupbefore 1.15.3
  • netapp management services for element softwareall versions
  • netapp management services for netapp hciall versions
  • netapp oncommand workflow automationall versions

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • jhy jsoup

    • < 1.15.3affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12jsoupbefore 1.15.3-11.15.3-1
Mavenorg.jsoup:jsoupbefore 1.15.31.15.3
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-hal-consolebefore 0:3.3.24-1.Final_redhat_00001.1.el7eap0:3.3.24-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-hibernate-validatorbefore 0:6.0.23-2.SP1_redhat_00001.1.el7eap0:6.0.23-2.SP1_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-hibernate-validator-cdibefore 0:6.0.23-2.SP1_redhat_00001.1.el7eap0:6.0.23-2.SP1_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-insights-java-clientbefore 0:1.1.3-1.redhat_00001.1.el7eap0:1.1.3-1.redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamarbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-common-apibefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-common-implbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-common-spibefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-core-apibefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-core-implbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-deployers-commonbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-jdbcbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-ironjacamar-validatorbefore 0:1.5.18-1.Final_redhat_00001.1.el7eap0:1.5.18-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-cert-helperbefore 0:1.1.3-1.redhat_00001.1.el7eap0:1.1.3-1.redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-cert-helper-debuginfobefore 0:1.1.3-1.redhat_00001.1.el7eap0:1.1.3-1.redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-ejb-clientbefore 0:4.0.55-1.Final_redhat_00001.1.el7eap0:4.0.55-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migrationbefore 0:1.10.0-39.Final_redhat_00039.1.el7eap0:1.10.0-39.Final_redhat_00039.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration-clibefore 0:1.10.0-39.Final_redhat_00039.1.el7eap0:1.10.0-39.Final_redhat_00039.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration-corebefore 0:1.10.0-39.Final_redhat_00039.1.el7eap0:1.10.0-39.Final_redhat_00039.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jbossws-cxfbefore 0:5.4.12-1.Final_redhat_00001.1.el7eap0:5.4.12-1.Final_redhat_00001.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-jsoupbefore 0:1.15.4-1.redhat_00003.1.el7eap0:1.15.4-1.redhat_00003.1.el7eap
Red Hat:jboss_enterprise_application_platform:7.4::el7eap7-undertow-jastowbefore 0:2.0.15-1.Final_redhat_00001.1.el7eap0:2.0.15-1.Final_redhat_00001.1.el7eap

+64

Other highest-scoring records for the same primary product.

  • CVE-2021-37714Crafted input may cause the jsoup HTML and XML parser to get stuck, timeout, or throw unchecked exceptions
    32Monitor
  • CVE-2015-6748Cross-site scripting (XSS) vulnerability in jsoup before 1.8.3.
    25Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:jsoup1.15.3-1 · Debian:12Package registry (OSV)
Maven:org.jsoup:jsoup1.15.3Package registry (OSV)
opensuse:jsoup1.15.3-150200.3.6.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:eap7-hal-console0:3.3.24-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-hibernate-validator0:6.0.23-2.SP1_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-hibernate-validator-cdi0:6.0.23-2.SP1_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-insights-java-client0:1.1.3-1.redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-common-api0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-common-impl0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-common-spi0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-core-api0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-core-impl0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-deployers-common0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
red hat:eap7-ironjacamar-jdbc0:1.5.18-1.Final_redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
suse:jsoup1.15.3-150200.3.6.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP3Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
low · data or configuration can be modified
Availability
none

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality impact
Low
Integrity impact
Low
Availability impact
None

CVSS vector

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

nvd-primary

Root cause

User content is inserted into the page as HTML. The browser interprets the content as code rather than data.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
commentEl.innerHTML = comment.body;

Fixed

ts
commentEl.textContent = comment.body;

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records