Vulnerability · Published Jun 17, 2022 · Assigned by snyk
CVE-2022-21213Prototype Pollution
High 7.5
In plain English
A high-severity security flaw in mout. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
This affects all versions of package mout. The deepFillIn function can be used to 'fill missing properties recursively', while the deepMixIn mixes objects into the target object, recursively mixing existing child objects as well. In both cases, the key used to access the target object recursively is not checked, leading to exploiting this vulnerability. **Note:** This vulnerability derives from an incomplete fix of [CVE-2020-7792](https://security.snyk.io/vuln/SNYK-JS-MOUT-1014544).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mout | 1.2.4 | GHSA-vvv8-xw5f-3f88 |
Affected products (as reported)
References
- https://github.com/mout/mout/blob/master/src/object/deepFillIn.js x_refsource_MISC
- https://github.com/mout/mout/blob/master/src/object/deepMixIn.js x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-MOUT-2342654 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2870622 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-2870623 x_refsource_MISC