QID 357223
Date Published: 2024-02-20
QID 357223: Amazon Linux Security Advisory for jsoup : ALAS2-2024-2466
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.) (
( CVE-2022-36033)
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.
- ALAS2-2024-2466 -
alas.aws.amazon.com/AL2/ALAS-2024-2466.html
CVEs related to QID 357223
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| ALAS2-2024-2466 | amazon linux 2 |
|