OSV 1.4.0 · github-reviewed · 修改于 2026-07-31 22:32
发布时间
2026-06-18 21:05
GitHub 审查时间
2026-06-18 21:05
NVD 发布时间
2026-07-02 05:17
源文件
advisories/github-reviewed/2026/06/GHSA-vpmm-x3fm-qr5c/GHSA-vpmm-x3fm-qr5c.json
Jodit.modules.Helpers.set(chain, value, obj) walks the dot-separated chain, creating and following each path segment, without filtering prototype-mutating keys. A chain that begins with (or contains) __proto__, constructor, or prototype lets the final assignment reach and mutate Object.prototype (prototype pollution).
jodit (npm)< 4.12.26Jodit.modules.Helpers.set(chain, value, obj)const { Jodit } = require('jodit');
delete Object.prototype.polluted;
Jodit.modules.Helpers.set('__proto__.polluted', 'yes', {});
console.log(({}).polluted); // "yes" (before the fix)
delete Object.prototype.polluted;
Applications that pass a user-controlled or partially user-controlled key path into Jodit.modules.Helpers.set() could be vulnerable to prototype pollution (CWE-1321): unexpected property injection, logic bypass, denial of service, or secondary security issues.
Fixed in 4.12.26 by rejecting any chain whose segments include __proto__, constructor, or prototype, reusing the same guard introduced for Jodit.configure() in 4.12.18.
Responsibly reported by Junming Wu.