GitHub Advisoryadvisory · npm
GHSA-r666-8gjf-4v5f Qwik City has a CSRF Protection Bypass via Content-Type Header Validation
MEDIUM
Official page ↗
- Aliases
- CVE-2026-25151
- Ecosystem
- npm
- Packages
- @builder.io/qwik-city
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N
- Weaknesses
- CWE-352
- Reviewed
- 2026-02-03
Affected packages
• npm @builder.io/qwik-city: < 1.19.0 → fixed in 1.19.0
Description
Summary
Qwik City’s server-side request handler inconsistently interprets HTTP request headers, which can be abused by a remote attacker to circumvent form submission CSRF protections using specially crafted or multi-valued Content-Type headers.
Impact
A vulnerability in checkCSRF lets an attacker bypass Origin-based CSRF checks by using malformed or multi-valued Content-Type headers. Exploitation requires the CORS preflight to succeed (so it’s blocked if preflight is denied) and is possible when the application accepts cross-origin requests or via non-browser clients. Impact varies with server CORS and cookie policies and may enable unauthorized state changes.
Related
Alias · CVE (1)
- CVE-2026-25151 Qwik is a performance focused javascript framework. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness