CVE-2017-1000048
Prototype Pollution Protection Bypass in qs
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » qsvia npm qs | < 6.0.4>= 6.1.0, < 6.1.2>= 6.2.0, < 6.2.3>= 6.3.0, < 6.3.2 | 6.0.4, 6.1.2, 6.2.3, 6.3.2 |
| org.webjars » qsvia npm qs | < 6.0.4>= 6.1.0, < 6.1.2>= 6.2.0, < 6.2.3>= 6.3.0, < 6.3.2 | 6.0.4, 6.1.2, 6.2.3, 6.3.2 |
| org.webjars.npm » qsvia npm qs | < 6.0.4>= 6.1.0, < 6.1.2>= 6.2.0, < 6.2.3>= 6.3.0, < 6.3.2 | 6.0.4, 6.1.2, 6.2.3, 6.3.2 |
Blast radius
61% of the dependent artifacts (16) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 25 |
| 2 hops | 8 |
| 3 hops | 2 |
| 4 hops | 4 |
| 5 hops | 8 |
| 6 hops | 2 |
Most used dependents
- org.webjars.npm » express38 usages
- org.webjars.npm » superagent17 usages
- org.webjars.npm » body-parser16 usages
- org.webjars.npm » connect14 usages
- org.webjars.npm » react-router9 usages
- org.mvnpm » body-parser9 usages
- org.webjars.npm » browser-sync7 usages
- org.webjars » bin-build4 usages
- org.webjars » bin-wrapper4 usages
- org.mvnpm » superagent3 usages
- org.webjars » download2 usages
- org.webjars » imagemin-gifsicle1 usages
- org.webjars » imagemin-jpegtran1 usages
- org.webjars » imagemin-optipng1 usages
- org.webjars » imagemin-pngquant1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2017-1000048 | nvd.nist.gov |
| Package | ljharb/qs | github.com |
| Web | ljharb/qs issue #200 | github.com |
| Web | ljharb/qs commit beade02 | github.com |
| Web | errata/RHSA-2017:2672 | access.redhat.com |
| Web | vuln/npm:qs:20170213 | snyk.io |
| Web | advisories/1469 | npmjs.com |
