CVE-2023-39318
Published: September 8, 2023Last modified: July 22, 2025
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 score breakdown
| Parameter | Value | 
|---|---|
| Base score | 6.1 | 
| Attack Vector | NETWORK | 
| Attack complexity | LOW | 
| Privileges required | NONE | 
| User interaction | REQUIRED | 
| Scope | CHANGED | 
| Confidentiality | LOW | 
| Integrity impact | LOW | 
| Availability impact | NONE | 
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | 
Status
| Product | Release | Package | Status | 
|---|---|---|---|
| Alpaquita Linux | 23 LTS | go | Fixed (1.21.7-r0) | 
| Stream | go | Not affected (1.21.1-r0) | |
| Hardened Containers | 23 LTS | go | Fixed (1.21.7-r0) | 
| Stream | go | Not affected (1.21.1-r0) |