Packages / @builder.io/qwik-city / Security

ModerateVulnerabilityGHSA-m6jq-g7gq-5w3cCVE-2026-25148Published 3 Feb 2026

Qwik SSR XSS via Unsafe Virtual Node Serialization

Your version

Affected releases · @builder.io/qwik-city

  • 1.x1.0.0 – 1.18.0Fixed in 1.19.0
  • 0.107.x and older0.0.1 – 0.107.0No fix, no longer updated

On 1.x, the newest line:

npm install @builder.io/qwik-city@1.19.0
Every release on a timeline
1.x
  1. Affected

    1.0.0 – 1.18.0

    69 releases

  2. Fixed

    1.19.0 – 1.20.4

    8 releases, latest

0.x
  1. Affected

    0.0.1 – 0.107.0

    91 releases

168 stable releases of @builder.io/qwik-city, oldest to newest, one row per major.

What happens

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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.