CVE-2026-72925 json
SWC HTML minifier may allow script element breakout when minifying embedded JSON
published 2026-08-11 2 mo ago modified 2026-09-18 51 d ago also GHSA-5qr2-v392-m9g8 , EUVD-2026-56179
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 27%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @swc/html 1.15.47-nightly-20260729.1
- crates.io swc_html_minifier 59.0.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @swc/html | <1.15.47-nightly-20260729.1 |
1.15.47-nightly-20260729.1 |
| crates.io | swc_html_minifier | <59.0.0 |
59.0.0 |
Affected products
- swc-project swc
- @swc html
- swc-project swc_html_minifier
Classification
References
-
github.com
/swc-project/swc/pull/12080
web
-
github.com
/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832
web
-
github.com
/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8
web
-
github.com
/swc-project/swc/releases/tag/v1.15.47
web
-
github.com
/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-72925
advisory
-
github.com
/swc-project/swc
package
Sources
- CVE List CVE-2026-72925
- GitHub Advisory GHSA-5qr2-v392-m9g8
- NVD CVE-2026-72925
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.