CVE-2022-24999: High severity Qs Project Qs Node.js vulnerability
A flaw was found in the express.js npm package of nodejs:14 module stream. Express.js Express is vulnerable to a denial of service caused by a prototype pollution flaw in qs. By adding or modifying properties of Object.prototype using a proto or constructor payload, a remote attacker can cause a denial of service.
Other sources
Express.js Express is vulnerable to a denial of service, caused by a prototype pollution flaw in qs. By adding or modifying properties of Object.prototype using a proto or constructor payload, a remote attacker could exploit this vulnerability to cause a denial of service condition.
— IBM
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.
— GitHub
qs before 6.10.3, as used in Express before 4.17.3 and other products, allows attackers to cause a Node process hang for an Express application because an proto key can be used. In many typical Express 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 (and therefore Express 4.17.3, which has "deps: qs@6.9.7" in its release description, is not vulnerable).
qs before 6.10.3, as used in Express before 4.17.3 and other products, allows attackers to cause a Node process hang for an Express application because an proto key can be used. In many typical Express 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 (and therefore Express 4.17.3, which has "deps: qs.7" in its release description, is not vulnerable).
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rh-nodejs14-nodejsto a version that resolves this vulnerability.Fixed in 0:14.21.1-3.el7 - Upgrade
Upgrade
redhat/rh-nodejs14-nodejs-nodemonto a version that resolves this vulnerability.Fixed in 0:2.0.20-2.el7 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.2.4 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.3.3 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.4.1 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.5.3 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.6.1 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.7.3 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.8.3 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.9.7 - Upgrade
Upgrade
npm/qsto a version that resolves this vulnerability.Fixed in 6.10.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 4.17.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.9.7 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.8.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.7.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.6.1 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.5.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.4.1 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.3.3 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.2.4 - Upgrade
Upgrade
redhat/qsto a version that resolves this vulnerability.Fixed in 6.10.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.10.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.9.7 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.8.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.7.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.6.1 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.5.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.4.1 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.3.3 - Upgrade
Upgrade
qsto a version that resolves this vulnerability.Fixed in 6.2.4 - Upgrade
Upgrade
Expressto a version that resolves this vulnerability.Fixed in 4.17.3
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2022-24999?
CVE-2022-24999 is a vulnerability in Express.js caused by a prototype pollution flaw in the qs library.
How severe is CVE-2022-24999?
CVE-2022-24999 has a severity rating of high, with a severity value of 7.
How does CVE-2022-24999 affect Express.js applications?
CVE-2022-24999 allows an unauthenticated remote attacker to cause a denial of service by hanging the Node process for an Express application.
Which versions of Express.js are affected by CVE-2022-24999?
Versions of Express.js before 4.17.3 are affected by CVE-2022-24999.
How can I fix CVE-2022-24999?
To fix CVE-2022-24999, update Express.js to version 4.17.3 or newer.