CVE-2023-26158

CVSS 3.1 Score 8.2 of 10 (high)

Details

Published Dec 8, 2023
Updated: Dec 12, 2023
CWE ID 1321

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.

Ligh bulbPrevent 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.

Share

Prioritize, Pinpoint, and Act to Prevent Vulnerability Exploits with Recorded Future

Note: This is just a basic overview providing quick insights into CVE-2023-26158 information. Gain full access to comprehensive CVE data, third party vulnerabilities, compromised credentials and more 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