The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in contexts. This may cause the template parser to improperly interpret the contents of contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.
CVE-2023-39318
Score 6.1 from GitHub Security Advisory published 2023-09-08. NVD baseline CVSS 6.1; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.1
- EG Score
- 6.1(medium)
- EPSS
- 52.8%
- KEV
- Not listed
Published
September 8, 2023
Last Modified
November 21, 2024
References (12)
- security@golanghttps://go.dev/cl/526156
- security@golanghttps://go.dev/issue/62196
- security@golanghttps://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- security@golanghttps://pkg.go.dev/vuln/GO-2023-2041
- security@golanghttps://security.gentoo.org/glsa/202311-09
- security@golanghttps://security.netapp.com/advisory/ntap-20231020-0009/
- af854a3a-2127-422b-91ae-364da2661108https://go.dev/cl/526156
- af854a3a-2127-422b-91ae-364da2661108https://go.dev/issue/62196
- af854a3a-2127-422b-91ae-364da2661108https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- af854a3a-2127-422b-91ae-364da2661108https://pkg.go.dev/vuln/GO-2023-2041
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202311-09
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20231020-0009/
Vendor Advisories for CVE-2023-39318(19)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:3467Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (etcd) security update
- RHSA-2024:3352Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update
- RHSA-2024:2988Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:rhel8 security update
- RHSA-2024:2160Red Hat Product SecurityMedium
Red Hat Security Advisory: toolbox security update
- RHSA-2024:1901Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Service Interconnect 1.5.3 Release (images)
- RHSA-2024:1383Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.0 security, enhancement, & bug fix update
- RHSA-2024:0121Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:4.0 security update
- RHBA-2023:7648Red Hat Product SecurityMedium
Red Hat Bug Fix Advisory: MTV 2.5.3 Images
- +11 more
Patch Availability(24)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| stdlib | — | 1.21.1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(9)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2023-393182025-09-04
Improper handling of HTML-like comments in script contexts in html/template
- Red HatRHBA-2023:6364MODERATE2023-09-06
RHBA-2023:6364 — Moderate
- Red HatRHBA-2023:6928MODERATE2023-09-06
RHBA-2023:6928 — Moderate
- Red HatRHSA-2023:7762MODERATE2023-09-06
RHSA-2023:7762 — Moderate
- Red HatRHSA-2023:7764MODERATE2023-09-06
RHSA-2023:7764 — Moderate
- Red HatRHSA-2023:7765MODERATE2023-09-06
RHSA-2023:7765 — Moderate
- Red HatRHSA-2023:7766MODERATE2023-09-06
RHSA-2023:7766 — Moderate
- UbuntuUSN-6574-1MEDIUM
Go vulnerabilities
- UbuntuUSN-7061-1MEDIUM
Go vulnerabilities
Data Freshness Timeline
(refreshed 9× in last 7d / 47× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 10:34 UTCOSV refresh
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
Show 60 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-09 21:17 UTCOSV refresh
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-24 17:55 UTCEG score recompute
- 2026-05-24 17:55 UTCVendor advisory
- 2026-05-24 17:55 UTCGHSA enrichment
- 2026-05-24 16:52 UTCEPSS rescore
Frequently asked(5)
What is CVE-2023-39318?
When was CVE-2023-39318 disclosed?
Is CVE-2023-39318 actively exploited?
What is the CVSS score of CVE-2023-39318?
How do I remediate CVE-2023-39318?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-39318
Is Your Infrastructure Affected by CVE-2023-39318?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.