Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-26158

Quick assessment

Affected
n/a mockjs
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Mock.js是一款模拟数据生成器,旨在帮助前端攻城师独立于后端进行开发,帮助编写单元测试。 Mock.js 存在安全漏洞,该漏洞源于缺少属性检查,容易受到原型污染。

CVSS 8.2 · High EPSS 0.80% · P55
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-26158

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
N/A
Source: CVE Program / CVE List V5
Vulnerability 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() { var target = arguments[0] || {}, i = 1, length = arguments.length, options, name, src, copy, clone if (length === 1) { target = this i = 0 } for (; i < length; i++) { options = arguments[i] if (!options) continue for (name in options) { if (["__proto__", "constructor", "prototype"].includes(name)) continue src = target[name] copy = options[name] if (target === copy) continue if (copy === undefined) continue if (Util.isArray(copy) || Util.isObject(copy)) { if (Util.isArray(copy)) clone = src && Util.isArray(src) ? src : [] if (Util.isObject(copy)) clone = src && Util.isObject(src) ? src : {} target[name] = Util.extend(clone, copy) } else { target[name] = copy } } } return target }
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1321
Source: CVE Program / CVE List V5
Vulnerability Title
Mock.js 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Mock.js是一款模拟数据生成器,旨在帮助前端攻城师独立于后端进行开发,帮助编写单元测试。 Mock.js 存在安全漏洞,该漏洞源于缺少属性检查,容易受到原型污染。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
- mockjs 0 ~ * -

II. Public POCs for CVE-2023-26158

# POC Description Source Link Shenlong Link
AI-Generated POC Verified env Premium
Qwen3.6-35B-A3B · 10217 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2023-26158

请登录查看更多情报信息。

Vendor Advisories for CVE-2023-26158 (1)

Other References for CVE-2023-26158 (1)

Same Patch Batch · n/a · 2023-12-08 · 29 CVEs total

CVE-2023-6560 5.5 MEDIUM Kernel: io_uring out of boundary memory access in __io_uaddr_map()
CVE-2023-6615 3.5 LOW Typecho manage-users.php information disclosure
CVE-2023-6609 3.5 LOW osCommerce all-products cross site scripting
CVE-2023-6614 2.7 LOW Typecho Page manage-pages.php backdoor
CVE-2023-6613 2.4 LOW Typecho Logo options-theme.php cross site scripting
CVE-2023-49487 JFinalCMS 安全漏洞
CVE-2023-49486 JFinalCMS 安全漏洞
CVE-2023-49485 JFinalCMS 安全漏洞
CVE-2023-49484 Dreamer CMS 安全漏洞
CVE-2023-49444 DoraCMS 安全漏洞
CVE-2023-49443 DoraCMS 安全漏洞
CVE-2023-49007 NETGEAR RBR750 安全漏洞
CVE-2023-48929 Franklin Electric Franklin Fueling Systems 安全漏洞
CVE-2023-48928 Franklin Electric Franklin Fueling Systems 安全漏洞
CVE-2023-48122 Microweber 安全漏洞
CVE-2023-46499 EverShop 安全漏洞
CVE-2023-46498 EverShop 安全漏洞
CVE-2023-46497 EverShop 安全漏洞
CVE-2023-46496 EverShop 安全漏洞
CVE-2023-46495 EverShop 安全漏洞

Showing top 20 of 29 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-26158

No comments yet


Leave a comment