CVE-2026-72925 — Vulnerability in swc_html_minifier — CVE Details
SWC HTML minifier may allow script element breakout when minifying embedded JSON
Summary
Advisory Timeline
- First published September 8, 2026 (34 days ago).
- Last revised September 8, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p swc_html_minifier --precise 59.0.0
npm install @swc/html@1.15.47-nightly-20260729.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: crates.io (1), npm (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| swc_html_minifier | crates.io | All versions | 59.0.0 |
| @swc/html | npm | All versions | 1.15.47-nightly-20260729.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-72925ADVISORY
- https://github.com/swc-project/swc/pull/12080WEB
- https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832WEB
- https://github.com/swc-project/swcPACKAGE
- https://github.com/swc-project/swc/releases/tag/v1.15.47WEB
- https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1WEB
Frequently Asked Questions
- What is CVE-2026-72925?
- SWC HTML minifier may allow script element breakout when minifying embedded JSON This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2026-72925?
- CVE-2026-72925 affects swc_html_minifier and @swc/html. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-72925 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-100723MEDIUM
vm2: NodeVM zlib Buffers expose pooled host memory across the VM boundary
- CVE-2026-105848MEDIUM
Payload: Insufficient Access Control in Stripe REST Proxy
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies