Back to CVE records
Medium 6.1Published Aug 11, 2026

CVE-2026-72925SWC HTML minifier may allow script element breakout when minifying embedded JSON

Updated under an hour ago ()

Does this affect you?

It affects swc-project swc and 2 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.1 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79, CWE-116
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Awaiting Analysis
Record last updated
Aug 11, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
swc-project swc
swc_project:swc (from the name)
before 1.15.47
CNA record
@swc html
swc:html (from the name)
before 1.15.47-nightly-20260729.1
CNA record
swc-project swc_html_minifier
swc_project:swc_html_minifier (from the name)
before 59.0.0
CNA record

References

  • x-refsource-confirm
  • x-refsource-misc
  • x-refsource-misc
  • x-refsource-misc
  • x-refsource-misc

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.