Security mailing lists by PureSourceCode

CVE-2022-36033

MEDIUM 6.1CVSS 3.1

jsoup may not sanitize code injection 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 is defined. (This should be used regardless of upgrading, as a defence-in-depth best practice.)

Published
29 Aug 2022
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-gp7f-rwcx-9369
Sources
NVDJSONOSV GHSA-gp7f-rwcx-9369JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jsoup jsoup
cpe:2.3:a:jsoup:jsoup:*:*:*:*:*:*:*:*
< 1.15.3 1.15.3
NVD netapp management_services_for_element_software
cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:*
(no version)
NVD netapp management_services_for_netapp_hci
cpe:2.3:a:netapp:management_services_for_netapp_hci:-:*:*:*:*:*:*:*
(no version)
NVD netapp oncommand_workflow_automation
cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
(no version)
OSV Maven org.jsoup:jsoup < 1.15.3 1.15.3

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Aug 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Sep 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.