CVE-2026-72925: swc · Cross-site Scripting
Affects swcSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium : upgrade to 1.15.47 when convenient.
Data as of 8 Nov 2026, 23:24 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.15.47, 1.15.47-nightly-20260729.1, 59.0.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade swc to 1.15.47; html to 1.15.47-nightly-20260729.1; swc_html_minifier to 59.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| swc-projectswc | Affected
| Fixed in
|
| @swchtml | Affected
| Fixed in
|
| swc-projectswc_html_minifier | Affected
| Fixed in
|
crates.ioswc_html_minifierpkg:cargo/swc_html_minifierOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in swc_html_minifier version 59.0.0. Users should upgrade to this version or later to remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
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.
References
- github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8 (opens in a new tab)
- github.com/swc-project/swc/pull/12080 (opens in a new tab)
- github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832 (opens in a new tab)
- github.com/swc-project/swc/releases/tag/v1.15.47 (opens in a new tab)
- github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1 (opens in a new tab)