ADVISORIES

Alpine Security Database

ALPINE-CVE-2023-39319

Details

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.

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