Red Hat VEX
RHVEX-CVE-2022-36033
jsoup: The jsoup cleaner may incorrectly sanitize crafted XSS attempts if SafeList.preserveRelativeLinks is enabled
Details
A flaw was found in jsoup, a Java HTML parser built for HTML editing, cleaning, scraping, and Cross-site scripting (XSS) safety. An issue in 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 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 possible.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | jsoup | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | jsoup-javadoc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | jsoup | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | jsoup-javadoc | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | jsoup | All versions, will not be fixed |