Search
Find a vulnerability
Search criteria
ⓘ
Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.
2 vulnerabilities by @swc
CVE-2026-72925 (GCVE-0-2026-72925)
Vulnerability from nvd – Published: 2026-08-11 14:45 – Updated: 2026-08-11 18:26
VLAI
EPSS
VEX
Title
SWC HTML minifier may allow script element breakout when minifying embedded JSON
Summary
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.
Severity
6.1 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-11 18:26 UTC
CWE
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/swc-project/swc/security/advis… | x_refsource_CONFIRM |
| https://github.com/swc-project/swc/pull/12080 | x_refsource_MISC |
| https://github.com/swc-project/swc/commit/e1877b4… | x_refsource_MISC |
| https://github.com/swc-project/swc/releases/tag/v… | x_refsource_MISC |
| https://github.com/swc-project/swc/releases/tag/v… | x_refsource_MISC |
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| swc-project | swc |
Affected:
< 1.15.47
|
|
| @swc | html |
Affected:
< 1.15.47-nightly-20260729.1
|
|
| swc-project | swc_html_minifier |
Affected:
< 59.0.0
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-72925",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-08-11T18:26:27.962954Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-08-11T18:26:38.644Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "swc",
"vendor": "swc-project",
"versions": [
{
"status": "affected",
"version": "\u003c 1.15.47"
}
]
},
{
"product": "html",
"vendor": "@swc",
"versions": [
{
"status": "affected",
"version": "\u003c 1.15.47-nightly-20260729.1"
}
]
},
{
"product": "swc_html_minifier",
"vendor": "swc-project",
"versions": [
{
"status": "affected",
"version": "\u003c 59.0.0"
}
]
}
],
"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\u0027s origin. This issue is fixed in @swc/html 1.15.47-nightly-20260729.1 and swc_html_minifier 59.0.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-116",
"description": "CWE-116: Improper Encoding or Escaping of Output",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-11T14:45:12.907Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8"
},
{
"name": "https://github.com/swc-project/swc/pull/12080",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/pull/12080"
},
{
"name": "https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832"
},
{
"name": "https://github.com/swc-project/swc/releases/tag/v1.15.47",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/releases/tag/v1.15.47"
},
{
"name": "https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1"
}
],
"source": {
"advisory": "GHSA-5qr2-v392-m9g8",
"discovery": "UNKNOWN"
},
"title": "SWC HTML minifier may allow script element breakout when minifying embedded JSON"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-72925",
"datePublished": "2026-08-11T14:45:12.907Z",
"dateReserved": "2026-08-10T17:57:26.144Z",
"dateUpdated": "2026-08-11T18:26:38.644Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-72925 (GCVE-0-2026-72925)
Vulnerability from cvelistv5 – Published: 2026-08-11 14:45 – Updated: 2026-08-11 18:26
VLAI
EPSS
VEX
Title
SWC HTML minifier may allow script element breakout when minifying embedded JSON
Summary
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.
Severity
6.1 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-11 18:26 UTC
CWE
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/swc-project/swc/security/advis… | x_refsource_CONFIRM |
| https://github.com/swc-project/swc/pull/12080 | x_refsource_MISC |
| https://github.com/swc-project/swc/commit/e1877b4… | x_refsource_MISC |
| https://github.com/swc-project/swc/releases/tag/v… | x_refsource_MISC |
| https://github.com/swc-project/swc/releases/tag/v… | x_refsource_MISC |
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| swc-project | swc |
Affected:
< 1.15.47
|
|
| @swc | html |
Affected:
< 1.15.47-nightly-20260729.1
|
|
| swc-project | swc_html_minifier |
Affected:
< 59.0.0
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-72925",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-08-11T18:26:27.962954Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-08-11T18:26:38.644Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "swc",
"vendor": "swc-project",
"versions": [
{
"status": "affected",
"version": "\u003c 1.15.47"
}
]
},
{
"product": "html",
"vendor": "@swc",
"versions": [
{
"status": "affected",
"version": "\u003c 1.15.47-nightly-20260729.1"
}
]
},
{
"product": "swc_html_minifier",
"vendor": "swc-project",
"versions": [
{
"status": "affected",
"version": "\u003c 59.0.0"
}
]
}
],
"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\u0027s origin. This issue is fixed in @swc/html 1.15.47-nightly-20260729.1 and swc_html_minifier 59.0.0."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-116",
"description": "CWE-116: Improper Encoding or Escaping of Output",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-11T14:45:12.907Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/swc-project/swc/security/advisories/GHSA-5qr2-v392-m9g8"
},
{
"name": "https://github.com/swc-project/swc/pull/12080",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/pull/12080"
},
{
"name": "https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/commit/e1877b44bdac8abc9fd51e984d584f40f6999832"
},
{
"name": "https://github.com/swc-project/swc/releases/tag/v1.15.47",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/releases/tag/v1.15.47"
},
{
"name": "https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/swc-project/swc/releases/tag/v1.15.47-nightly-20260729.1"
}
],
"source": {
"advisory": "GHSA-5qr2-v392-m9g8",
"discovery": "UNKNOWN"
},
"title": "SWC HTML minifier may allow script element breakout when minifying embedded JSON"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-72925",
"datePublished": "2026-08-11T14:45:12.907Z",
"dateReserved": "2026-08-10T17:57:26.144Z",
"dateUpdated": "2026-08-11T18:26:38.644Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}