CVE-2023-39319
Vulnerability Summary
Timeline
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
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 0.92%• Percentile: 59%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- chainguard•katib-earlystopping
< 0.19.0-r31
- chainguard•katib-suggestion-goptuna-compat
< 0.19.0-r40
- chainguard•katib-suggestion-hyperband
< 0.19.0-r31
- chainguard•katib-suggestion-hyperopt
< 0.19.0-r31 | < 0.19.0-r40
- chainguard•katib-suggestion-nas-darts
< 0.19.0-r31
- chainguard•katib-suggestion-nas-enas
< 0.19.0-r31
- chainguard•katib-suggestion-optuna-enas
< 0.19.0-r31
- chainguard•katib-suggestion-pbt-enas
< 0.19.0-r31
- chainguard•katib-suggestion-skopt-enas
< 0.19.0-r31
- chainguard•katib-tfevent-metricscollector
< 0.19.0-r31
- chainguard•kind
< 0.21.0-r0
- chainguard•metrics-server
< 0.6.4-r1
- wolfi•katib-earlystopping
< 0.19.0-r31
- wolfi•katib-suggestion-goptuna-compat
< 0.19.0-r40
- wolfi•katib-suggestion-hyperband
< 0.19.0-r31
- wolfi•katib-suggestion-hyperopt
< 0.19.0-r31 | < 0.19.0-r40
- wolfi•katib-suggestion-nas-darts
< 0.19.0-r31
- wolfi•katib-suggestion-nas-enas
< 0.19.0-r31
- wolfi•katib-suggestion-optuna-enas
< 0.19.0-r31
- wolfi•katib-suggestion-pbt-enas
< 0.19.0-r31
- wolfi•katib-suggestion-skopt-enas
< 0.19.0-r31
- wolfi•katib-tfevent-metricscollector
< 0.19.0-r31
- wolfi•kind
< 0.21.0-r0
- wolfi•metrics-server
< 0.6.4-r1
- debian•golang-1.15
all
- debian•golang-1.19
all
- go standard library•html/template
< 1.20.8 | ≥ 1.21.0-0, < 1.21.1
- golang•go
< 1.20.8 | ≥ 1.21.0, < 1.21.1
- Go•stdlib
≥ 1.21.0-0, < 1.21.1
References (7)
- https://go.dev/issue/62197
- https://go.dev/cl/526157
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- https://pkg.go.dev/vuln/GO-2023-2043
- https://security.netapp.com/advisory/ntap-20231020-0009/
- https://security.gentoo.org/glsa/202311-09
- https://security-tracker.debian.org/tracker/CVE-2023-39319