CVE-2026-72925 (GCVE-0-2026-72925)

Vulnerability from cvelistv5 – Published: 2026-08-11 14:45 – Updated: 2026-08-11 18:26
VLAI
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.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-11 18:26 UTC
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-116 - Improper Encoding or Escaping of Output
Impacted products
Vendor Product Version CPE status
swc-project swc Affected: < 1.15.47
guessed Create a notification for this product.
@swc html Affected: < 1.15.47-nightly-20260729.1
guessed Create a notification for this product.
swc-project swc_html_minifier Affected: < 59.0.0
guessed Create a notification for this product.
Show details on NVD website

{
  "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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72925",
      "date": "2026-09-25",
      "epss": "0.00338",
      "percentile": "0.24519"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "security-advisories@github.com"
          }
        ],
        "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\u0027s origin. This issue is fixed in @swc/html 1.15.47-nightly-20260729.1 and swc_html_minifier 59.0.0."
          }
        ],
        "id": "CVE-2026-72925",
        "lastModified": "2026-09-18T20:05:53.723",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "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"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 2.7,
              "source": "security-advisories@github.com",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-72925",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-08-11T18:26:27.962954Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-08-11T15:17:38.497",
        "references": [
          {
            "source": "security-advisories@github.com",
            "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"
          }
        ],
        "sourceIdentifier": "security-advisories@github.com",
        "vulnStatus": "Awaiting Analysis",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-79"
              },
              {
                "lang": "en",
                "value": "CWE-116"
              }
            ],
            "source": "security-advisories@github.com",
            "type": "Secondary"
          }
        ]
      }
    },
    "vulnrichment": {
      "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:34.568Z",
              "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…