ADVISORIES

Alpine Security Database

ALPINE-CVE-2023-39318

Details

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.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.18go
All versions before 1.20.8-r0 (fixed in 1.20.8-r0)
Alpine:v3.19go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)
Alpine:v3.20go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)
Alpine:v3.21go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)
Alpine:v3.22go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)
Alpine:v3.23go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)
Alpine:v3.24go
From 1.21.0 before 1.21.1-r0 (fixed in 1.21.1-r0)

References