CVE-2021-23438: Prototype Pollution

Published Sep 1, 2021
·
Updated

Node.js mpath module could allow a remote attacker to execute arbitrary code on the system, caused by a prototype pollution flaw. By adding or modifying properties of Object.prototype using a proto or constructor payload, an attacker could exploit this vulnerability to execute arbitrary code on the system.

Other sources

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['proto']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

This affects the package mpath before 0.8.4. A type confusion vulnerability can lead to a bypass of CVE-2018-16490. In particular, the condition ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['proto']. This is because the method that has been called if the input is an array is Array.prototype.indexOf() and not String.prototype.indexOf(). They behave differently depending on the type of the input.

Affected Software

4 affected componentsFixes available
Mpath Project Mpath Node.js<0.8.4
npm/mpath<0.8.4
0.8.4
IBM Cognos Analytics<=11.2.0 - 11.2.2
IBM Cognos Analytics<=11.1.0 - 11.1.6 FP4

Event History

Sep 1, 2021
CVE Published
via MITRE·06:20 PM
Data Sourced
via MITRE·06:20 PM
DescriptionSeverityWeakness
Sep 2, 2021
Advisory Published
10:02 PM
Feb 23, 2026
Data Sourced
via IBM·11:32 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-23438?

CVE-2021-23438 is a vulnerability in the Node.js mpath module that could allow a remote attacker to execute arbitrary code on the system.

2

How severe is CVE-2021-23438?

CVE-2021-23438 has a severity rating of 9.8 out of 10, which is considered critical.

3

Which software is affected by CVE-2021-23438?

The package mpath before version 0.8.4, Node.js mpath module, IBM Cognos Analytics 11.2.x, and IBM Cognos Analytics 11.1.x are affected by CVE-2021-23438.

4

How can CVE-2021-23438 be fixed?

To fix CVE-2021-23438, update the mpath package to version 0.8.4 or higher.

5

Where can I find more information about CVE-2021-23438?

More information about CVE-2021-23438 can be found at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-23438), [GitHub](https://github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc), [Snyk](https://snyk.io/vuln/SNYK-JS-MPATH-1577289).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203