CVE-2023-39318

medium

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.

References

https://security.netapp.com/advisory/ntap-20231020-0009/

https://security.gentoo.org/glsa/202311-09

https://pkg.go.dev/vuln/GO-2023-2041

https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ

https://go.dev/issue/62196

https://go.dev/cl/526156

Details

Source: Mitre, NVD

Published: 2023-09-08

Updated: 2023-11-25

Risk Information

CVSS v2

Base Score: 6.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Severity: Medium