Security mailing lists by PureSourceCode

CVE-2026-72925

MEDIUM 6.1CVSS 3.1

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

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.

Published
11 Aug 2026
Last modified
18 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-116CWE-79
Also known as
GHSA-5qr2-v392-m9g8
Sources
NVDJSONOSV GHSA-5qr2-v392-m9g8JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm @swc/html < 1.15.47-nightly-20260729.1 1.15.47-nightly-20260729.1
OSV crates.io swc_html_minifier < 59.0.0 59.0.0

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 11 Aug 2026)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.