GHSA-gqgv-6jq5-jjj9

Suggest an improvement
Source
https://github.com/advisories/GHSA-gqgv-6jq5-jjj9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-gqgv-6jq5-jjj9/GHSA-gqgv-6jq5-jjj9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gqgv-6jq5-jjj9
Aliases
Published
2020-04-30T17:16:47Z
Modified
2023-11-08T03:58:42.086259Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Prototype Pollution Protection Bypass in qs
Details

Affected version of qs are vulnerable to Prototype Pollution because it is possible to bypass the protection. The qs.parse function fails to properly prevent an object's prototype to be altered when parsing arbitrary input. Input containing [ or ] may bypass the prototype pollution protection and alter the Object prototype. This allows attackers to override properties that will exist in all objects, which may lead to Denial of Service or Remote Code Execution in specific circumstances.

Recommendation

Upgrade to 6.0.4, 6.1.2, 6.2.3, 6.3.2 or later.

Database specific
{
    "cwe_ids": [
        "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-04-30T17:16:10Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

npm / qs

Package

Affected ranges

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

npm / qs

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.1.0
Fixed
6.1.2

npm / qs

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.2.0
Fixed
6.2.3

npm / qs

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.3.0
Fixed
6.3.2