SWC HTML minifier may allow script element breakout when minifying embedded JSON
Published Aug 11, 2026
6.1
MEDIUMCVSS 3.1
EPSS 0.34%
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.
Affected products
-
- Version < 1.15.47StatusaffectedConstraints-
- Version
-
- Version < 59.0.0StatusaffectedConstraints-
- Version
- Vendor n/a Product Html Defaultn/a
- Version < 1.15.47-nightly-20260729.1StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Swc-Project | Swc | n/a |
| ||||||
| Swc-Project | Swc Html Minifier | n/a |
| ||||||
| n/a | Html | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
@swc/html
npm
Introduced 0 Fixed 1.15.47-nightly-20260729.1swc_html_minifier
crates.io
Introduced 0 Fixed 59.0.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @swc/html | 0 | 1.15.47-nightly-20260729.1 |
| crates.io | swc_html_minifier | 0 | 59.0.0 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Aug 11, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
Aug–Oct 2026- EPSS v5
Percentile over time
- EPSS v5
Table of values (2 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.34% (0.00338) | 24.82th | v5 (v2026.06.15) |
| Aug 12, 2026 | 0.19% (0.00194) | 9.32th | v5 (v2026.06.15) |
References (7)
- https://github.com/advisories/GHSA-5qr2-v392-m9g8 Advisory
- https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832 x_refsource_MISC
- https://github.com/swc-project/swc/pull/12080 x_refsource_MISC
- https://github.com/swc-project/swc/releases/tag/v1.15.47 x_refsource_MISC
- https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1 x_refsource_MISC
- https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-72925
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-5qr2-v392-m9g8 | Advisory | |
| https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832 | x_refsource_MISC | |
| https://github.com/swc-project/swc/pull/12080 | x_refsource_MISC | |
| https://github.com/swc-project/swc/releases/tag/v1.15.47 | x_refsource_MISC | |
| https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1 | x_refsource_MISC | |
| https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8 | x_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-72925 |
Change history (0)
No recorded changes yet.