CVE-2026-72925swc-project swc
Medium 6.1 No auth needed
Follow: this CVE · swc-project · swc-project swc We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- —
- Auth required
- No
- Published
- Aug 11, 2026
- Updated
- Sep 18, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for swc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | swc_html_minifier |
< 59.0.0 |
59.0.0 |
cargo update -p swc_html_minifier --precise 59.0.0 |
| npm | @swc/html |
< 1.15.47-nightly-20260729.1 |
1.15.47-nightly-20260729.1 |
npm install @swc/html@1.15.47-nightly-20260729.1 |
Per OSV / GitHub Advisories (GHSA-5qr2-v392-m9g8). Check the version in your lockfile before upgrading.
Affected products
- swc-project · swc
- @swc · html
- swc-project · swc_html_minifier
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.