{"cve":"CVE-2026-72925","nvd":{"published":"2026-08-11T15:17:38.497","modified":"2026-09-18T20:05:53.723","status":"Awaiting Analysis","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79","CWE-116"],"references":["https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","https://github.com/swc-project/swc/pull/12080","https://github.com/swc-project/swc/releases/tag/v1.15.47","https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1","https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:47:54.990491175+00:00"},"epss":{"cve":"CVE-2026-72925","score":0.00338,"percentile":0.27243,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5qr2-v392-m9g8","url":"https://osv.dev/vulnerability/GHSA-5qr2-v392-m9g8","summary":"SWC HTML minifier may allow script element breakout when minifying embedded JSON","modified":"2026-09-08T18:15:03.995774389Z","packages":[{"ecosystem":"npm","name":"@swc/html","purl":"pkg:npm/%40swc/html","ranges":["<1.15.47-nightly-20260729.1"],"fixed":["1.15.47-nightly-20260729.1"]},{"ecosystem":"crates.io","name":"swc_html_minifier","purl":"pkg:cargo/swc_html_minifier","ranges":["<59.0.0"],"fixed":["59.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}