CVE-2023-39319: Improper handling of special tags within script contexts in html/template
Vulnerability summary
CVE-2023-39319 is a medium (CVSS 6.1) vulnerability in go standard library html/template. EPSS estimates a 0.91% chance of exploitation in the next 30 days, higher than 60.1% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 24 · Related 14Timeline
- 08-09-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.91%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.91% on 05-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
Wolfi12 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r40 | < 0.19.0-r31
- katib-suggestion-nas-darts< 0.19.0-r31
Ubuntu10 products
- golang-1.10All versions (No fix recorded)
- golang-1.13All versions (No fix recorded)
- golang-1.14All versions (No fix recorded)
- golang-1.16All versions (No fix recorded)
- golang-1.17< 1.17.13-3ubuntu1.2
Alpine1 product
- go≥ 1.21.0, < 1.20.8-r0 | ≥ 1.21.0, < 1.21.1-r0
Debian1 product
- golang-1.19All versions (No fix recorded)
Go1 product
- stdlib≥ 1.21.0-0, < 1.21.1
Go standard library1 product
- html/template< 1.20.8 | ≥ 1.21.0-0, < 1.21.1
Golang1 product
- go< 1.20.8 | ≥ 1.21.0, < 1.21.1
8 vendors · 39 products
References
17 links- security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory