QID 356376

Date Published: 2023-10-18

QID 356376: Amazon Linux Security Advisory for golang : ALAS2023-2023-367

The html/template package does not properly handle html-like "" comment tokens, nor hashbang "#!"
Comment tokens, in <script> contexts.
This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped.
This may be leveraged to perform an xss attack. (
( CVE-2023-39318) the html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within js literals in <script> contexts.
This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped.
This could be leveraged to perform an xss attack. (
( CVE-2023-39319)



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-367 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356376

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