cve.bz

CVE-2026-72925

6.1 mediumEPSS 0.3%

Medium (6.1). EPSS 0.3% chance of exploitation in the next 30 days. Fixed in @swc/html 1.15.47-nightly-20260729.1.

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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.3% chance of exploitation in the next 30 days; higher than 27% of CVEs (scores of 2026-10-31)
CWEs
CWE-79, CWE-116
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5qr2-v392-m9g8npm@swc/html<1.15.47-nightly-20260729.11.15.47-nightly-20260729.1
GHSA-5qr2-v392-m9g8crates.ioswc_html_minifier<59.0.059.0.0

References

Check your stackJSON