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.
Advisories, Assessments, and Mitigations
Prioritize, Pinpoint, and Act to Prevent Vulnerability Exploits with Recorded Future
- Gain complete coverage of your cyber, third party, and physical attack surface
- Proactively mitigate threats before they turn into costly attacks
- Make fast, effective, data-driven decisions