CVE-2023-26158
CVSS 3.1 Score 8.2 of 10 (high)
Details
Summary
CVE-2023-26158 is a prototype pollution vulnerability affecting all versions of the mockjs package. The Util.extend function is the root cause, as it fails to check if the attribute being extended resolves to the object prototype. An attacker can manipulate object prototypes by adding or modifying attributes, leading to unexpected behavior or data exposure. Inputs in the extend() method of Mock.Handler, Mock.Random, Mock.RE.Handler, or Mock.Util can be exploited. A workaround involves using a denylist of dangerous attributes to prevent such modifications. The provided code snippet adds a check to exclude certain attributes from being extended, thus mitigating the vulnerability.
Prevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.