GHSA-whhv-gg5v-864r

Suggest an improvement
Source
https://github.com/advisories/GHSA-whhv-gg5v-864r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-whhv-gg5v-864r/GHSA-whhv-gg5v-864r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-whhv-gg5v-864r
Aliases
Published
2026-03-20T15:56:44Z
Modified
2026-03-20T16:11:21Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Qwik City has array method pollution in FormData processing allows type confusion and DoS
Details

Summary

Qwik City improperly inferred arrays from dotted form field names during FormData parsing. By submitting mixed array-index and object-property keys for the same path, an attacker could cause user-controlled properties to be written onto values that application code expected to be arrays.

Description

When processing application/x-www-form-urlencoded or multipart/form-data requests, Qwik City converted dotted field names such as items.0 and items.1 into nested structures. If a path was interpreted as an array, additional attacker-controlled keys on the same path, such as items.toString, items.push, items.valueOf, or items.length, could alter the resulting server-side value in unexpected ways.

Applications that assumed these parsed values were safe arrays could be affected. Depending on application behavior, this could lead to request handling failures, denial of service through malformed array state or oversized lengths, and type confusion in downstream code.

This issue affects form parsing in Qwik City request handling. It does not require authentication if the vulnerable route is publicly reachable.

Impact

An attacker can send crafted form submissions that cause parsed input to differ from the application’s expected shape. Possible outcomes include:

  • Triggering runtime errors when application code calls array methods on attacker-influenced values
  • Inflating array length or otherwise creating malformed structures that increase server work or memory use
  • Causing type confusion in application logic that trusts parsed form data to be a normal array

There is no direct evidence that this issue enables confidentiality or integrity impact by itself; the primary risk is denial of service and application instability.

Patched Versions

Patched in 1.19.2.

Workarounds

Until patched, avoid trusting parsed form data to be a well-formed array when using dotted field names, and validate or normalize action input before using array methods or relying on array shape.

Database specific
{
    "cwe_ids":  [
        "CWE-843"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-20T15:56:44Z",
    "nvd_published_at":  "2026-03-20T09:16:14Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @builder.io/qwik-city

Package

Name
@builder.io/qwik-city
View open source insights on deps.dev
Purl
pkg:npm/%40builder.io/qwik-city

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.19.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-whhv-gg5v-864r/GHSA-whhv-gg5v-864r.json"