CVE-2023-26158
8.2 · HIGHAll versions of the package mockjs are vulnerable to Prototype Pollution via the Util.extend function due to missing check if the attribute resolves to the object prototype.
Overview
CVE-2023-26158 is a high-severity vulnerability. It was published on December 8, 2023 and has a CVSS 3.1 base score of 8.2 (HIGH).
This vulnerability has a CVSS 3.1 base score of 8.2, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
Technical description
All versions of the package mockjs are vulnerable to Prototype Pollution via the Util.extend function due to missing check if the attribute resolves to the object prototype. By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf). User controlled inputs inside the extend() method of the Mock.Handler, Mock.Random, Mock.RE.Handler or Mock.Util, will allow an attacker to exploit this vulnerability. Workaround By using a denylist of dangerous attributes, this weakness can be eliminated. Add the following line in the Util.extend function: js js if (["__proto__", "constructor", "prototype"].includes(name)) continue js // src/mock/handler.js Util.extend = function extend() {
Remediation
Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
References
How CyberStrike helps
Reason, not just scan
It reasons through your app's logic the way a human pentester would, so it finds flaws signature scanners miss.
Learn moreVerified findings
Every finding is proven exploitable before you see it, which cuts the false positives that bury real risk.
Learn moreAI-driven DAST and SAST
Probe running apps and read source from one engine, so issues are caught before and after they ship.
Learn moreOpen source
Read exactly how it tests and what it reports. CyberStrike is open source and in early access.
View the repo
Frequently asked questions
What is CVE-2023-26158?
CVE-2023-26158 is a high-severity vulnerability. It was published on December 8, 2023 and has a CVSS 3.1 base score of 8.2 (HIGH).
How severe is CVE-2023-26158?
This vulnerability has a CVSS 3.1 base score of 8.2, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
How do I fix or remediate CVE-2023-26158?
Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2023-26158?
CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2023-26158 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.
Related HIGH CVEs from 2023
View all- 8.9CVE-2022-4428
support_uri parameter in the WARP client local settings file (mdm.xml) lacked proper validation whic
View details - 8.9CVE-2023-26032
ZoneMinder is a free, open source Closed-circuit television software application for Linux which sup
View details - 8.9CVE-2023-26037
ZoneMinder is a free, open source Closed-circuit television software application for Linux which sup
View details - 8.9CVE-2023-26480
XWiki Platform is a generic wiki platform. Starting in version 12.10, a user without script rights c
View details - 8.9CVE-2023-29207
XWiki Commons are technical libraries common to several other top level XWiki projects. The Livetab
View details - 8.9CVE-2023-29508
XWiki Commons are technical libraries common to several other top level XWiki projects. A user witho
View details - 8.9CVE-2023-27524
Session Validation attacks in Apache Superset versions up to and including 2.0.1. Installations that
View details - 8.9CVE-2023-33961
Leantime is a lean open source project management system. Starting in version 2.3.21, an authenticat
View details - 8.9CVE-2023-30435
IBM Security Guardium 11.3, 11.4, and 11.5 is vulnerable to stored cross-site scripting. This vulner
View details - 8.9CVE-2023-39446
Thanks to the weaknesses that the web application has at the user management level, an attack
View details - 8.9CVE-2023-42819
JumpServer is an open source bastion host. Logged-in users can access and modify the contents of any
View details - 8.9CVE-2023-46723
lte-pic32-writer is a writer for PIC32 devices. In versions 0.0.1 and prior, those who use `sendto.t
View details