PT-2026-70223 · @Swc/Html+1 · @Swc/Html+1

CVE-2026-72925

·

Published

2026-08-11

·

Updated

2026-09-08

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions @swc/html versions prior to 1.15.47-nightly-20260729.1 swc html minifier versions prior to 59.0.0
Description The minifyJson processing in crates/swc html minifier/src/lib.rs fails to implement the escape json for html script behavior when parsing and serializing attacker-controlled JSON within application/json and application/ld+json script elements. This lack of re-escaping for less-than signs allows a closing script sequence to terminate the element prematurely, enabling the execution of arbitrary scripts within the origin of the generated page.
Recommendations Update @swc/html to version 1.15.47-nightly-20260729.1 or later. Update swc html minifier to version 59.0.0 or later.

Exploit

Fix

Improper Encoding or Escaping of Output

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-72925
GHSA-5QR2-V392-M9G8

Affected Products

@Swc/Html
Swc Html Minifier