CVE-2026-72925SWC HTML minifier may allow script element breakout when minifying embedded JSON
Updated under an hour ago ()
Does this affect you?
It affects swc-project swc and 2 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 6.1 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness (CWE)
- CWE-79, CWE-116
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Awaiting Analysis
- Record last updated
- Aug 11, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
swc-project swc swc_project:swc (from the name) | before 1.15.47 | CNA record |
@swc html swc:html (from the name) | before 1.15.47-nightly-20260729.1 | CNA record |
swc-project swc_html_minifier swc_project:swc_html_minifier (from the name) | before 59.0.0 | CNA record |
References
- https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8x-refsource-confirm
- https://github.com/swc-project/swc/pull/12080x-refsource-misc
- https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832x-refsource-misc
- https://github.com/swc-project/swc/releases/tag/v1.15.47x-refsource-misc
- https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1x-refsource-misc
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.