Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.
CVE-2023-24540
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2023-05-11. NVD baseline CVSS 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 72.1%
- KEV
- Not listed
Published
May 11, 2023
Last Modified
January 24, 2025
Advisory Details (5)
Auto-updated Jun 15, 2026html/template: improper handling of JavaScript whitespace · Issue #59721 · golang/go · GitHub
https://go.dev/issue/59721Vendor Advisories for CVE-2023-24540(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:2944Red Hat Product SecurityHigh
Red Hat Security Advisory: AMQ Broker 7.12.0.OPR.1.GA Container Images release and security update
- RHSA-2023:6939Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:rhel8 security and bug fix update
- RHSA-2023:6938Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:4.0 security and bug fix update
- RHSA-2023:6346Red Hat Product SecurityMedium
Red Hat Security Advisory: toolbox security and bug fix update
- RHSA-2023:6402Red Hat Product SecurityMedium
Red Hat Security Advisory: containernetworking-plugins security and bug fix update
- RHSA-2023:6474Red Hat Product SecurityMedium
Red Hat Security Advisory: podman security, bug fix, and enhancement update
- RHSA-2023:6473Red Hat Product SecurityMedium
Red Hat Security Advisory: buildah security update
- RHSA-2023:6363Red Hat Product SecurityMedium
Red Hat Security Advisory: skopeo security update
- +12 more
Patch Availability(30)
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.20.4 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(18)
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-245402025-09-04
Improper handling of JavaScript whitespace in html/template
- Red HatRHSA-2023:3318IMPORTANT2023-04-20
RHSA-2023:3318 — Important
- Red HatRHSA-2023:3319IMPORTANT2023-04-20
RHSA-2023:3319 — Important
- Red HatRHSA-2023:3323IMPORTANT2023-04-20
RHSA-2023:3323 — Important
- Red HatRHSA-2023:3379IMPORTANT2023-04-20
RHSA-2023:3379 — Important
- Red HatRHSA-2023:3409IMPORTANT2023-04-20
RHSA-2023:3409 — Important
- Red HatRHSA-2023:3410IMPORTANT2023-04-20
RHSA-2023:3410 — Important
- Red HatRHSA-2023:3415IMPORTANT2023-04-20
RHSA-2023:3415 — Important
- Red HatRHSA-2023:3435IMPORTANT2023-04-20
RHSA-2023:3435 — Important
- Red HatRHSA-2023:3445IMPORTANT2023-04-20
RHSA-2023:3445 — Important
- Red HatRHSA-2023:3545IMPORTANT2023-04-20
RHSA-2023:3545 — Important
- Red HatRHSA-2023:3644IMPORTANT2023-04-20
RHSA-2023:3644 — Important
- Red HatRHSA-2023:3910IMPORTANT2023-04-20
RHSA-2023:3910 — Important
- Red HatRHSA-2023:3911IMPORTANT2023-04-20
RHSA-2023:3911 — Important
- Red HatRHSA-2023:3915IMPORTANT2023-04-20
RHSA-2023:3915 — Important
- Red HatRHSA-2023:4289IMPORTANT2023-04-20
RHSA-2023:4289 — Important
- Red HatRHSA-2023:4335IMPORTANT2023-04-20
RHSA-2023:4335 — Important
- Red HatRHSA-2023:4420IMPORTANT2023-04-20
RHSA-2023:4420 — Important
Data Freshness Timeline
(refreshed 9× in last 7d / 45× 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:25 UTCEPSS rescore
- 2026-07-11 08:25 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:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:58 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 21:04 UTCOSV refresh
- 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:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 62 moreShow fewer
- 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-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-16 17:51 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-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 08:17 UTCOSV refresh
- 2026-06-08 14:15 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 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:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 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:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 01:17 UTCEG score recompute
- 2026-05-25 01:17 UTCVendor advisory
- 2026-05-25 01:17 UTCGHSA enrichment
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-77 · CWE-74
Frequently asked(5)
What is CVE-2023-24540?
When was CVE-2023-24540 disclosed?
Is CVE-2023-24540 actively exploited?
What is the CVSS score of CVE-2023-24540?
How do I remediate CVE-2023-24540?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-24540
Is Your Infrastructure Affected by CVE-2023-24540?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.