CVE Vulnerabilities

CVE-2022-24999

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Published: Nov 26, 2022 | Modified: Apr 29, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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).

Weakness

The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Affected Software

NameVendorStart VersionEnd Version
QsQs_project*6.2.4 (excluding)
QsQs_project6.3.0 (including)6.3.3 (excluding)
QsQs_project6.5.0 (including)6.5.3 (excluding)
QsQs_project6.7.0 (including)6.7.3 (excluding)
QsQs_project6.8.0 (including)6.8.3 (excluding)
QsQs_project6.9.0 (including)6.9.7 (excluding)
QsQs_project6.10.0 (including)6.10.3 (excluding)
QsQs_project6.4.0 (including)6.4.0 (including)
QsQs_project6.6.0 (including)6.6.0 (including)
MTA-6.0-RHEL-8RedHatmta/mta-ui-rhel8:6.0.1-10*
Red Hat Enterprise Linux 8RedHatnodejs:14-8070020221212161539.bd1311ed*
Red Hat Enterprise Linux 8.4 Extended Update SupportRedHatnodejs:14-8040020230306170312.522a0ee4*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatnodejs:14-8060020230306170237.ad008a3a*
Red Hat Migration Toolkit for Containers 1.7RedHatrhmtc/openshift-migration-ui-rhel8:v1.7.8-5*
Red Hat OpenShift Service Mesh 2.2 for RHEL 8RedHatopenshift-service-mesh/prometheus-rhel8:2.2.7-7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs14-nodejs-0:14.21.1-3.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs14-nodejs-nodemon-0:2.0.20-2.el7*
RHODF-4.12-RHEL-8RedHatodf4/mcg-core-rhel8:v4.12.3-4*
RHOL-5.5-RHEL-8RedHatopenshift-logging/logging-view-plugin-rhel8:v5.5.8-3*
RHOL-5.6-RHEL-8RedHatopenshift-logging/logging-view-plugin-rhel8:v5.6.3-5*
Node-expressUbuntubionic*
Node-expressUbuntuesm-apps/focal*
Node-expressUbuntufocal*
Node-expressUbuntukinetic*
Node-expressUbuntulunar*
Node-expressUbuntumantic*
Node-expressUbuntutrusty*
Node-expressUbuntuxenial*
Node-qsUbuntuesm-apps/focal*

Potential Mitigations

References