{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-72925","id":"CVE-2026-72925","title":"SWC HTML minifier may allow script element breakout when minifying embedded JSON","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 clo","descriptionLong":"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":"2026-08-11T14:45:12.907Z","updated":"2026-10-28T02:30:44.047342123Z","reserved":"2026-08-10T17:57:26.144Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["swc-project swc","@swc html","swc-project swc_html_minifier"],"affectedProducts":[{"vendor":"swc-project","product":"swc","defaultStatus":null,"versions":[{"version":"< 1.15.47","status":"affected"}],"platforms":[]},{"vendor":"@swc","product":"html","defaultStatus":null,"versions":[{"version":"< 1.15.47-nightly-20260729.1","status":"affected"}],"platforms":[]},{"vendor":"swc-project","product":"swc_html_minifier","defaultStatus":null,"versions":[{"version":"< 59.0.0","status":"affected"}],"platforms":[]}],"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"],"advisory":"GHSA-5qr2-v392-m9g8"},{"ecosystem":"crates.io","name":"swc_html_minifier","purl":"pkg:cargo/swc_html_minifier","ranges":["<59.0.0"],"fixed":["59.0.0"],"advisory":"GHSA-5qr2-v392-m9g8"}],"cwes":["CWE-79","CWE-116"],"aliases":["GHSA-5qr2-v392-m9g8"],"references":[{"url":"https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/swc-project/swc/pull/12080","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/swc-project/swc/releases/tag/v1.15.47","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72925.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72925","tags":["advisory"]},{"url":"https://github.com/swc-project/swc","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00338,"epssPercentile":0.27766,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-72925","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72925","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-72925","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5qr2-v392-m9g8","ok":true,"note":"GHSA-5qr2-v392-m9g8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-72925","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}