{"id":"GHSA-5qr2-v392-m9g8","revision":null,"records":[{"revision":"2aa476fd99954d36bb949c5b274f16d8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-72925","aliases":[],"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 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.","state":0,"publishedAt":"2026-08-11T14:45:12.907+00:00","modifiedAt":"2026-08-11T18:26:38.644+00:00","affected":[{"ecosystem":"Vendor product","name":"swc","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"swc-project\",\n                    \"product\": \"swc\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.15.47\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"html","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"@swc\",\n                    \"product\": \"html\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.15.47-nightly-20260729.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"swc_html_minifier","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"swc-project\",\n                    \"product\": \"swc_html_minifier\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 59.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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,"severity":"MEDIUM"}],"references":["https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8","https://github.com/swc-project/swc/pull/12080","https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-72925","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-72925","identifiers":["CVE-2026-72925"]},"retained":false,"historicalAffected":[]},{"revision":"b29cb92a637341888044da89d6ce1415","observedAt":"2026-11-11T16:04:01.382+00:00","statement":{"source":"euvd","id":"EUVD-2026-56179","aliases":["CVE-2026-72925","GHSA-5qr2-v392-m9g8"],"title":"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-controlle…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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,"severity":null}],"references":["https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8","https://github.com/swc-project/swc/pull/12080","https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-56179","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 11, 2026, 2:45:12 PM","dateUpdated":"Aug 11, 2026, 6:26:38 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-56179","identifiers":["EUVD-2026-56179","CVE-2026-72925","GHSA-5qr2-v392-m9g8"]},"retained":false,"historicalAffected":[]},{"revision":"075e25aaab714e128e753596d7c975f4","observedAt":"2026-10-25T15:19:03.401+00:00","statement":{"source":"nvd","id":"CVE-2026-72925","aliases":[],"title":"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-controlle…","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.","state":0,"publishedAt":"2026-08-11T15:17:38.497+00:00","modifiedAt":"2026-09-18T20:05:53.723+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-72925","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-79","CWE-116"],"productCriteria":[],"sourceDates":{"published":"2026-08-11T15:17:38.497","lastModified":"2026-09-18T20:05:53.723"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-72925","identifiers":["CVE-2026-72925"]},"retained":false,"historicalAffected":[]},{"revision":"0e22e126d07e4b9b8025d1734566f0f1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5qr2-v392-m9g8","aliases":["CVE-2026-72925"],"title":"SWC HTML minifier may allow script element breakout when minifying embedded JSON","description":"## Impact\n\n`@swc/html` minifies JSON contained in `script` elements such as\n`application/json` and `application/ld+json` by parsing and serializing the\nJSON value.\n\nBefore the patched versions, JSON serialization could convert escaped\nless-than signs such as `\\u003C` into literal `<` characters. If the JSON\ncontained an escaped `</script>` sequence, the generated HTML could terminate\nthe containing script element early because HTML tokenization occurs before\nthe JSON is consumed.\n\nApplications that minify HTML containing attacker-controlled JSON data could\ntherefore transform inert data into active markup. A crafted payload could\nexecute script in the origin of the generated page.\n\n## Patches\n\nThe issue is fixed in:\n\n- `@swc/html` 1.15.47\n- `swc_html_minifier` 59.0.0\n\nThe minifier now re-escapes less-than signs after JSON serialization, preserving\nthe script element boundary.\n\n## Workarounds\n\nUsers who cannot upgrade can disable JSON minification with:\n\n```js\nawait minify(html, {\n  minifyJson: false,\n});","state":0,"publishedAt":"2026-09-08T17:58:00+00:00","modifiedAt":"2026-09-08T18:15:03.9957744+00:00","affected":[{"ecosystem":"npm","name":"@swc/html","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.15.47-nightly-20260729.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"swc_html_minifier","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"59.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8","https://nvd.nist.gov/vuln/detail/CVE-2026-72925","https://github.com/swc-project/swc/pull/12080","https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832","https://github.com/swc-project/swc","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"],"sourceUrl":"https://github.com/advisories/GHSA-5qr2-v392-m9g8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5qr2-v392-m9g8","identifiers":["GHSA-5qr2-v392-m9g8","CVE-2026-72925"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-13T10:56:58.7021102+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-13T10:56:58.7021102+00:00","lastSuccessAt":"2026-11-13T10:56:58.8672286+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.8672302+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d8fa82e95fdb59244e2f635e667ba17f0796ca0a4f1f4bb8cc31febcd660b76c-da2131805d8e22f1aacba2b8dcc168fe40c571cbe5b28f3593a5978272818271","complete":true,"records":425352,"lastAttemptAt":"2026-11-13T10:56:58.3270466+00:00","lastSuccessAt":"2026-11-13T10:56:58.1894208+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.3270466+00:00","snapshotPublishedAt":"2026-11-13T10:19:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-cebc479b5c5a44758fb5ac8e93782bcd","complete":false,"records":13793,"lastAttemptAt":"2026-11-13T11:06:31.5042286+00:00","lastSuccessAt":"2026-11-13T11:06:30.487+00:00","error":"239 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-13T11:06:30.487+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13234,"expectedIdentifiers":13846,"failedIdentifiers":239},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-13T10:56:58.7021102+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-13T10:56:58.7021102+00:00","lastSuccessAt":"2026-11-13T10:56:58.8681338+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.8681341+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4ba957c820134164a894230a688495c2","complete":true,"records":13793,"lastAttemptAt":"2026-11-13T10:56:59.4499552+00:00","lastSuccessAt":"2026-11-13T09:56:59.811+00:00","error":null,"lastVerifiedAt":"2026-11-13T09:56:59.811+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13846,"expectedIdentifiers":13846,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-93e76d404e1aeb6a7e8902f5ffa06211fc86dea3b1958e297abb2668aa5e6e8c","complete":true,"records":9952,"lastAttemptAt":"2026-11-13T10:56:58.6561645+00:00","lastSuccessAt":"2026-11-12T23:19:15.5239119+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.6561645+00:00","snapshotPublishedAt":"2026-11-12T23:03:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-13T10:56:58.3956562+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.3956562+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-20d1a8ab073a1c13ab2143dbcadb34ebb8edf1e18e16482b448513662c3d1e12","complete":true,"records":3127,"lastAttemptAt":"2026-11-13T10:56:58.6692957+00:00","lastSuccessAt":"2026-11-12T22:18:31.0338213+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.6692957+00:00","snapshotPublishedAt":"2026-11-12T22:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-24050939c62dd3b6b6239735dfea28a7170f2b40b5de29359847ee068e1ec8ff","complete":true,"records":231770,"lastAttemptAt":"2026-11-13T10:56:58.5544402+00:00","lastSuccessAt":"2026-11-13T08:59:14.8600113+00:00","error":null,"lastVerifiedAt":"2026-11-13T10:56:58.5544402+00:00","snapshotPublishedAt":"2026-11-13T08:32:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}