CVE-2026-72925SWC HTML minifier may allow script element breakout when minifying embedded JSON
- 6.1MediumCVSS base score
- 0.34%Exploitation in 30 daysEPSS · top 72% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
SWC is a TypeScript / JavaScript compiler written in Rust. Prior to @swc/html 1.15.47-nightly-20260729.1 and swc_html_minifier 59.0.0, the minifyJson processing in crates/swc_html_minifier/src/lib.rs parsed and serialized attacker-controlled JSON in application/json and application/ld+json script elements without the escape_json_for_html_script behavior to re-escape less-than signs, allowing a closing script sequence to terminate the element early and execute script in the generated page's origin. This issue is fixed in @swc/html 1.15.47-nightly-20260729.1 and swc_html_minifier 59.0.0.
Timeline
ID reserved
By GitHub_M
- 1 day later
· 1 day later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Awaiting Analysis | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.34% · top 72% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Affected products
- affected < 1.15.47
- affected < 1.15.47-nightly-20260729.1
swc-project · swc_html_minifier
- affected < 59.0.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.ioswc_html_minifierGHSA-5qr2-v392-m9g8 (opens in a new tab)
- npm@swc/htmlGHSA-5qr2-v392-m9g8 (opens in a new tab)
References
References5
- https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/swc-project/swc/pull/12080 (opens in a new tab)x_refsource_MISC
- https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832 (opens in a new tab)x_refsource_MISC
- https://github.com/swc-project/swc/releases/tag/v1.15.47 (opens in a new tab)x_refsource_MISC
- https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-56179 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-5qr2-v392-m9g8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-72925)Record last updated .