CVE-2022-21213 Prototype Pollution
Prototype pollution in mout library allows attackers to modify object prototypes, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21213?
CVE-2022-21213 is a high-severity vulnerability in mout, published on 17 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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).
Weakness: CWE-1321
Which versions are affected by CVE-2022-21213?
2 open source packages ship an affected version, including mout. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mout npm | All versions | 1.2.4 |
mout npm | All versions | 1.2.4 |
Products include Moutjs Mout.
How do I fix CVE-2022-21213?
Upgrade mout to 1.2.4 or later.
Is CVE-2022-21213 being exploited?
There is no known exploitation of CVE-2022-21213 in the wild and no public exploit code.
Other vulnerabilities in mout
Sources
Also known as CLSA-2026-1773101697, CLSA-2026-1789161495, GHSA-vvv8-xw5f-3f88.