Packages / @builder.io/qwik / Security
Qwik: Crashing any Qwik Server via Resource thenable
Affected releases · @builder.io/qwik
- 1.x1.0.0 – 1.19.2Fixed in 1.20.0
- 0.107.x and older0.0.6 – 0.107.0No fix, no longer updated
On 1.x, the newest line:
npm install @builder.io/qwik@1.20.0Every release on a timeline
Affected
1.0.0 – 1.19.2
72 releases
Fixed
1.20.0 – 1.20.4
5 releases, latest
Affected
0.0.6 – 0.107.0
91 releases
What happens
Summary
A Qwik server in the default configuration can be crashed with one unauthenticated HTTP request. During qwik-json body parsing, ResourceSerializer.$fill$ does Promise.resolve(resource._resolved). If _resolved is a plain object whose .then is a QRL for an unregistered symbol, the async QRL rejects, the rejection is orphaned, and Node terminates the process via its default unhandled-rejection policy.
Impact
One unauthenticated request crashes the server. Looping keeps every replica dead as long as the attacker sends requests.
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.