Vulnerability CVE-2023-39318: Information

Description

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.

Severity: MEDIUM (6.1) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Published: Sept. 8, 2023
Modified: Nov. 25, 2023
Error type identifier: CWE-79

Fixed packages

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
      Start including
      1.21.0
      End excliding
      1.21.1

      cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
      End excliding
      1.20.8