GitHub Advisory Database
GHSA-vm6g-8r4h-22x8
Qwik City CSRF protection middleware does not work properly for content type header with parameters (eg. multipart/form-data)
Details
Summary
A typo in the regular expression within isContentType causes incorrect parsing of certain Content-Type headers.
Impact
An attacker can bypass Qwik City’s Origin-based CSRF protections and perform forged form submissions, potentially causing unauthorized state changes.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | @builder.io/qwik-city | All versions before 1.12.0 (fixed in 1.12.0) |