{"id":"CVE-2026-55886","title":"jodit: Prototype pollution in Jodit via Jodit.modules.Helpers.set()","summary":"jodit: Prototype pollution in Jodit via Jodit.modules.Helpers.set()","severity":"medium","cwe":["CWE-1321"],"vendor":"jodit","product":"jodit","ecosystem":"npm","affected":["jodit < 4.12.26"],"patched":["jodit 4.12.26"],"published":"2026-06-18","updated":"2026-06-18","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-vpmm-x3fm-qr5c","references":[{"url":"https://github.com/xdan/jodit/security/advisories/GHSA-vpmm-x3fm-qr5c"},{"url":"https://github.com/advisories/GHSA-vpmm-x3fm-qr5c"}],"tags":["ghsa","npm"],"ingestedAt":"2026-06-29T14:31:47.010Z","epss":0.00534,"epssPercentile":0.44031,"slug":"CVE-2026-55886","body":"## Overview\n\n### Summary\n`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).\n\n### Affected\n- Package: `jodit` (npm)\n- Versions: `< 4.12.26`\n- Public API: `Jodit.modules.Helpers.set(chain, value, obj)`\n\n### Proof of Concept\n```js\nconst { Jodit } = require('jodit');\ndelete Object.prototype.polluted;\nJodit.modules.Helpers.set('__proto__.polluted', 'yes', {});\nconsole.log(({}).polluted); // \"yes\" (before the fix)\ndelete Object.prototype.polluted;\n```\n\n### Impact\nApplications 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.\n\n### Patch\nFixed 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.\n\n### Credit\nResponsibly reported by Junming Wu.\n\n## Affected packages\n\n- `jodit < 4.12.26`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `jodit 4.12.26`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}