Packages / @builder.io/qwik-city / Security
Prototype Pollution via FormData Processing in Qwik City
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.0Every release on a timeline
Affected
1.0.0 – 1.18.0
69 releases
Fixed
1.19.0 – 1.20.4
8 releases, latest
Affected
0.0.1 – 0.107.0
91 releases
What happens
Summary
A Prototype Pollution vulnerability exists in the formToObj() function within @builder.io/qwik-city middleware. The function processes form field names with dot notation (e.g., user.name) to create nested objects, but fails to sanitize dangerous property names like __proto__, constructor, and prototype. This allows unauthenticated attackers to pollute Object.prototype by sending crafted HTTP POST requests, potentially leading to privilege escalation, authentication bypass, or denial of service.
Impact
An unauthenticated attacker can supply specially crafted form field names that cause formToObj() to write dangerous keys (for example proto, constructor, prototype) into parsed objects. This results in Prototype Pollution of the server process and can cause privilege escalation, auth bypass, denial-of-service, or other global application integrity failures depending on how objects are used.
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.