5.6medium
Prototype Pollution
- Severity
- 5.6medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.72% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-p92x-r36w-9395
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| mpath | from unspecified before 0.8.4 | CVE List |
| mpath (npm) | before 0.8.4 | GitHub Advisory Database |
| mpath_project mpath | before 0.8.4 | NVD |
All scores
| snyk | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C |
| GitHub | 5.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Esto afecta al paquete mpath versiones anteriores a 0.8.4. Una vulnerabilidad de confusión de tipo puede conllevar a una omisión de CVE-2018-16490. En concreto, la condición ignoreProperties.indexOf(parts[i]) !== -1 returns -1 if parts[i] is ['__proto__']. Esto es debido a que el método que se ha llamado si la entrada es un array es Array.prototype.indexOf() y no String.prototype.indexOf(). Se comportan de forma diferente según el tipo de entrada
References
| https://snyk.io/vuln/SNYK-JS-MPATH-1577289 | exploit, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1579548 | exploit, third-party-advisory, web | |
| https://github.com/aheckmann/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23438 | advisory | |
| https://github.com/mongoosejs/mpath/commit/89402d2880d4ea3518480a8c9847c541f2d824fc | web | |
| https://github.com/aheckmann/mpath | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23438 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p92x-r36w-9395 changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23438 changed 2026-06-17 | Public domain |