{"id":"CVE-2026-72925","sourceIdentifier":"security-advisories@github.com","published":"2026-08-11T15:17:38.497","lastModified":"2026-09-18T20:05:53.723","vulnStatus":"Awaiting Analysis","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"swc-project","product":"swc","versions":[{"version":"< 1.15.47","status":"affected"}]},{"vendor":"@swc","product":"html","versions":[{"version":"< 1.15.47-nightly-20260729.1","status":"affected"}]},{"vendor":"swc-project","product":"swc_html_minifier","versions":[{"version":"< 59.0.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","baseScore":6.1,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":2.7}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-08-11T18:26:27.962954Z","id":"CVE-2026-72925","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-79"},{"lang":"en","value":"CWE-116"}]}],"references":[{"url":"https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","source":"security-advisories@github.com"},{"url":"https://github.com/swc-project/swc/pull/12080","source":"security-advisories@github.com"},{"url":"https://github.com/swc-project/swc/releases/tag/v1.15.47","source":"security-advisories@github.com"},{"url":"https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1","source":"security-advisories@github.com"},{"url":"https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8","source":"security-advisories@github.com"}]}