CVE-2026-25148: Qwik SSR XSS via Unsafe Virtual Node Serialization
Summary Description A Cross-site Scripting (CWE-79) vulnerability in Qwik.js' server-side rendering virtual attribute serialization allows a remote attacker to inject arbitrary web scripts into server-rendered pages via virtual attributes. Successful exploitation permits script execution in a victim's browser in the context of the affected origin. This affects qwik-city before version 1.19.0.
Published Feb 3, 2026 · Updated Feb 4, 2026
Affected packages
@builder.io/qwik-city
- Ecosystem
- npm
- Affected
- < 1.19.0
- Fixed in
- 1.19.0
- Check
npm ls @builder.io/qwik-city
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Description A Cross-site Scripting (CWE-79) vulnerability in Qwik.js' server-side rendering virtual attribute serialization allows a remote attacker to inject arbitrary web scripts into server-rendered pages via virtual attributes. Successful exploitation permits script execution in a victim's browser in the context of the affected origin. This affects qwik-city before version 1.19.0. This has been patched in qwik-city version 1.19.0.
Impact
This vulnerability impacts applications that dynamically populate Virtual Node attributes with keys/values that users can influence. Applications that hard-code these keys/values are unaffected.
Qwik doesn't use traditional hydration. Instead, it serializes application state into the HTML so the client can resume execution from the server-rendered output. To support this, Qwik v1 marks component boundaries with HTML comments. SSR builds comment content for Virtual components by concatenating structural attribute names and values without any escaping or quoting. An attacker-controlled key or value can prematurely close the HTML comment and inject arbitrary HTML/JS.
Successful exploitation permits script execution in a victim’s browser in the context of the affected origin. Additionally, because Qwik uses these serialized comment markers for resumability, breaking comment structure can lead to resume/hydration desync and unexpected client-side behavior.
Patches
This has been patched in qwik-city version 1.19.0. Users are strongly encouraged to update to the latest available release.
Credited to wodzen.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-32701
Qwik City has array method pollution in FormData processing allows type confusion and DoS
high7.5Mar 20, 2026CVE-2026-25149
Qwik City Open Redirect via fixTrailingSlash
low2.7Feb 3, 2026CVE-2026-25150
Prototype Pollution via FormData Processing in Qwik City
critical9.3Feb 3, 2026CVE-2026-25151
Qwik City has a CSRF Protection Bypass via Content-Type Header Validation
medium5.9Feb 3, 2026CVE-2026-25155
Qwik City CSRF protection middleware does not work properly for content type header with parameters (eg. multipart/form-data)
medium5.9Feb 3, 2026CVE-2025-53620
Qwik's unhandled exception vulnerabilty can cause server crashes from malicious requests
critical9.2Jul 9, 2025
