CVE-2023-39319

medium

Description

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.

References

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

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

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

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

https://go.dev/issue/62197

https://go.dev/cl/526157

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