QID 355879

QID 355879: Amazon Linux Security Advisory for jsoup : ALAS2023-2023-315

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.

  • CVSS V3 rated as High - 6.1 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-315 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355879

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-315 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-315.html