CVE-2022-24999
qs vulnerable to Prototype Pollution
Description
qs before 6.10.3 allows attackers to cause a Node process hang because an __ proto__ key can be used. In many typical web framework use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as a[__proto__]=b&a[__proto__]&a[length]=100000000. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » qsvia npm qs | < 6.2.4>= 6.3.0, < 6.3.3>= 6.4.0, < 6.4.1>= 6.5.0, < 6.5.3>= 6.6.0, < 6.6.1>= 6.7.0, < 6.7.3>= 6.8.0, < 6.8.3>= 6.9.0, < 6.9.7>= 6.10.0, < 6.10.3 | 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7, 6.10.3 |
| org.webjars » qsvia npm qs | < 6.2.4>= 6.3.0, < 6.3.3>= 6.4.0, < 6.4.1>= 6.5.0, < 6.5.3>= 6.6.0, < 6.6.1>= 6.7.0, < 6.7.3>= 6.8.0, < 6.8.3>= 6.9.0, < 6.9.7>= 6.10.0, < 6.10.3 | 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7, 6.10.3 |
| org.webjars.npm » qsvia npm qs | < 6.2.4>= 6.3.0, < 6.3.3>= 6.4.0, < 6.4.1>= 6.5.0, < 6.5.3>= 6.6.0, < 6.6.1>= 6.7.0, < 6.7.3>= 6.8.0, < 6.8.3>= 6.9.0, < 6.9.7>= 6.10.0, < 6.10.3 | 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7, 6.10.3 |
Blast radius
65% of the dependent artifacts (19) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 30 |
| 2 hops | 12 |
| 3 hops | 2 |
| 4 hops | 4 |
| 5 hops | 8 |
| 6 hops | 2 |
Most used dependents
- org.webjars.npm » express38 usages
- org.mvnpm » express26 usages
- org.webjars.npm » superagent17 usages
- org.webjars.npm » body-parser16 usages
- org.webjars.npm » connect14 usages
- org.mvnpm » body-parser9 usages
- org.webjars.npm » react-router9 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.mvnpm » swagger-tools1 usages
- org.webjars » imagemin-gifsicle1 usages
- org.webjars » imagemin-jpegtran1 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-2022-24999 | nvd.nist.gov |
| Package | ljharb/qs | github.com |
| Web | ljharb/qs pull request #428 | github.com |
| Web | ljharb/qs commit 4310742 | github.com |
| Web | ljharb/qs commit 727ef5d | github.com |
| Web | ljharb/qs commit 7320525 | github.com |
| Web | ljharb/qs commit 8b4cc14 | github.com |
| Web | ljharb/qs commit ba24e74 | github.com |
| Web | ljharb/qs commit e799ba5 | github.com |
| Web | ljharb/qs commit ed0f5dc | github.com |
| Web | ljharb/qs commit f945393 | github.com |
| Web | ljharb/qs commit fc36827 | github.com |
| Web | expressjs/express release 4.17.3 | github.com |
| Web | n8tz/CVE-2022-24999 | github.com |
| Web | debian-lts-announce/2023/01/msg00039.html | lists.debian.org |
| Web | advisory/ntap-20230908-0005 | security.netapp.com |
