目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CWE-1321 类漏洞列表 261

CWE-1321 类弱点 261 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-1321 原型污染漏洞属于对象属性控制不当类型。攻击者通过注入恶意输入,修改 JavaScript 对象的原型属性,从而污染全局对象或影响后续实例。这可能导致远程代码执行、拒绝服务或权限提升。开发者应避免直接合并用户输入,使用 Object.create(null) 创建无原型对象,或采用安全库限制原型修改,并严格验证输入来源,以阻断污染路径。

MITRE CWE 官方描述
CWE:CWE-1321 对象原型属性('Prototype Pollution')的修改控制不当 英文:产品接收来自上游组件的输入,该输入指定了要在对象中初始化或更新的属性,但它未能正确控制对对象原型(prototype)属性的修改。
常见影响 (2)
Confidentiality, Integrity, Availability Read Application Data, Modify Application Data
This weakness is usually exploited by using a special attribute of objects called proto, constructor, or prototype. Such attributes give access to the object prototype. An attacker can inject attributes that are used in other components by adding or modifying attributes of an object prototype. This …
Availability DoS: Crash, Exit, or Restart
An attacker can override existing attributes with ones that have incompatible type, which may lead to a crash.
缓解措施 (5)
Implementation By freezing the object prototype first (for example, Object.freeze(Object.prototype)), modification of the prototype becomes impossible.
Effectiveness: High
Architecture and Design By blocking modifications of attributes that resolve to object prototype, such as proto or prototype, this weakness can be mitigated.
Effectiveness: High
Implementation When handling untrusted objects, validating using a schema can be used.
Effectiveness: Limited
Implementation By using an object without prototypes (via Object.create(null) ), adding object prototype attributes by accessing the prototype via the special attributes becomes impossible, mitigating this weakness.
Effectiveness: High
Implementation Map can be used instead of objects in most cases. If Map methods are used instead of object attributes, it is not possible to access the object prototype or modify it.
Effectiveness: Moderate
代码示例 (1)
This function sets object attributes based on a dot-separated path.
function setValueByPath (object, path, value) { const pathArray = path.split("."); const attributeToSet = pathArray.pop(); let objectToModify = object; for (const attr of pathArray) { if (typeof objectToModify[attr] !== 'object') { objectToModify[attr] = {}; } objectToModify = objectToModify[attr]; } objectToModify[attributeToSet] = value; return object; }
Bad · JavaScript
setValueByPath({}, "__proto__.isAdmin", true) setValueByPath({}, "constructor.prototype.isAdmin", true)
Bad · JavaScript
CVE ID 标题 CVSS 风险等级 Published
CVE-2025-48054 Radashi 安全漏洞 — radashi 9.8AI Critical AI 2025-05-27
CVE-2025-5150 DocArray 安全漏洞 — docarray 6.3 Medium 2025-05-25
CVE-2025-25014 Elastic Kibana 安全漏洞 — Kibana 9.1 Critical 2025-05-06
CVE-2025-3982 Sverchok 安全漏洞 — Sverchok 4.3 Medium 2025-04-27
CVE-2024-12556 Elastic Kibana 安全漏洞 — Kibana 8.7 High 2025-04-08
CVE-2025-32014 estree-util-value-to-estree 安全漏洞 — estree-util-value-to-estree 6.5AI Medium AI 2025-04-07
CVE-2025-31475 tarteaucitron.js 安全漏洞 — tarteaucitron.js 5.5 Medium 2025-04-07
CVE-2025-3197 expand-object 安全漏洞 — expand-object 7.3 High 2025-04-04
CVE-2025-27597 vue-i18n 安全漏洞 — vue-i18n 9.8 - 2025-03-07
CVE-2025-25015 Elastic Kibana 安全漏洞 — Kibana 9.9 Critical 2025-03-05
CVE-2024-11628 Progress Telerik UI 安全漏洞 — Progress® Telerik® Kendo UI for Vue 4.1 Medium 2025-02-12
CVE-2024-12629 Progress Telerik KendoReact 安全漏洞 — Telerik KendoReact 4.1 Medium 2025-02-12
CVE-2024-56059 WordPress plugin Partners 安全漏洞 — Partners 9.8 Critical 2024-12-18
CVE-2024-21548 Bun 安全漏洞 — bun 7.5 High 2024-12-18
CVE-2024-54156 JetBrains YouTrack 安全漏洞 — YouTrack 4.2 Medium 2024-12-04
CVE-2024-52810 Shared 安全漏洞 — vue-i18n 9.1 - 2024-11-29
CVE-2023-0163 编号已被CVE保留 — Convict 8.1AI High AI 2024-11-26
CVE-2024-52441 WordPress plugin Quick Learn 安全漏洞 — Quick Learn 9.8 Critical 2024-11-20
CVE-2024-48910 DOMPurify 安全漏洞 — DOMPurify 9.1 Critical 2024-10-31
CVE-2024-45277 SAP HANA 安全漏洞 — SAP HANA Client 4.3 Medium 2024-10-08
CVE-2024-21489 uPlot 安全漏洞 — uplot 8.2 High 2024-10-01
CVE-2024-45815 Backstage 安全漏洞 — backstage 6.5 Medium 2024-09-17
CVE-2024-21529 Lukeed dset 安全漏洞 — dset 8.2 High 2024-09-11
CVE-2024-21528 node-gettext 安全漏洞 — node-gettext 5.9 Medium 2024-09-10
CVE-2024-21512 MySQL2 安全漏洞 — mysql2 8.2 High 2024-05-29
CVE-2024-34698 FreeScout 安全漏洞 — freescout 4.6 Medium 2024-05-13
CVE-2024-32866 Conform 安全漏洞 — conform 8.6 High 2024-04-23
CVE-2024-21509 MySQL2 安全漏洞 — mysql2 6.5 Medium 2024-04-10
CVE-2024-21505 Web3.js 安全漏洞 — web3-utils 7.5 High 2024-03-25
CVE-2024-2495 FriendlyWrt 安全漏洞 — FriendlyWrt 5.2 Medium 2024-03-15

CWE-1321 是常见的弱点类别,本平台收录该类弱点关联的 261 条 CVE 漏洞。