CVE-2026-72925
Last modified
CVE-2026-72925 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| swc-project | swc | < 1.15.47 |
| @swc | html | < 1.15.47-nightly-20260729.1 |
| swc-project | swc_html_minifier | < 59.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-72925?
How severe is CVE-2026-72925?
How do I fix CVE-2026-72925?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-72918Rocket.Chat is an open-source, secure, fully customizable co…5.4
- CVE-2026-72919Rocket.Chat is an open-source, secure, fully customizable co…4.3
- CVE-2026-7292A security vulnerability has been detected in o2oa up to 10.…5.6
- CVE-2026-72920SeaweedFS is a distributed storage system. Prior to 4.24, th…9.8
- CVE-2026-72921SeaweedFS is a distributed storage system. Prior to 4.24, th…8.1
- CVE-2026-72922AutoGPT is a workflow automation platform for creating, depl…8.2
- CVE-2026-7293A vulnerability was detected in SourceCodester Pizzafy Ecomm…4.7
- CVE-2026-7294A flaw has been found in SourceCodester Pizzafy Ecommerce Sy…2.4
- CVE-2026-7295A vulnerability has been found in SourceCodester Pizzafy Eco…2.4
- CVE-2026-7296A vulnerability was found in SourceCodester Pizzafy Ecommerc…2.4
- CVE-2026-7297A vulnerability was determined in SourceCodester Pizzafy Eco…2.4
- CVE-2026-72971Improper link resolution before file access ('link following…5.5
Are you affected by CVE-2026-72925?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
