Read the docs
TI-2026-51141 Aliases CVE-2026-72925GHSA-5qr2-v392-m9g8

SWC HTML minifier may allow script element breakout when minifying embedded JSON

Priority LOW 27CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00338 27th percentileScored 2026-11-07
Fix Fixed swc (swc-project): 1.15.47html (@swc): 1.15.47-nightly-20260729.1+3 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
swc-projectswcbefore 1.15.471.15.47Patch availableCNA
@swchtmlbefore 1.15.47-nightly-20260729.11.15.47-nightly-20260729.1Patch availableCNA
swc-projectswc_html_minifierbefore 59.0.059.0.0Patch availableCNA
—@swc/html (npm)before 1.15.47-nightly-20260729.11.15.47-nightly-20260729.1Patch availableGHSA-5qr2-v392-m9g8
—swc_html_minifier (crates.io)before 59.0.059.0.0Patch availableGHSA-5qr2-v392-m9g8
  • swc Vendorswc-project Affected before 1.15.47 Fixed in 1.15.47 Patch available CNA
  • html Vendor@swc Affected before 1.15.47-nightly-20260729.1 Fixed in 1.15.47-nightly-20260729.1 Patch available CNA
  • swc_html_minifier Vendorswc-project Affected before 59.0.0 Fixed in 59.0.0 Patch available CNA
  • @swc/html (npm) Vendor— Affected before 1.15.47-nightly-20260729.1 Fixed in 1.15.47-nightly-20260729.1 Patch available GHSA-5qr2-v392-m9g8
  • swc_html_minifier (crates.io) Vendor— Affected before 59.0.0 Fixed in 59.0.0 Patch available GHSA-5qr2-v392-m9g8

Remediation

  • Fix · CNA swc (swc-project) Fixed in 1.15.47
  • Fix · CNA html (@swc) Fixed in 1.15.47-nightly-20260729.1
  • Fix · CNA swc_html_minifier (swc-project) Fixed in 59.0.0
  • Fix · GHSA-5qr2-v392-m9g8 @swc/html (npm) Fixed in 1.15.47-nightly-20260729.1 Advisory →
  • Fix · GHSA-5qr2-v392-m9g8 swc_html_minifier (crates.io) Fixed in 59.0.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-72925
  2. 2026-10-03 Alias added: GHSA-5qr2-v392-m9g8

References

Sources