{"id":"GHSA-vpmm-x3fm-qr5c","summary":"jodit: Prototype pollution in Jodit via Jodit.modules.Helpers.set()","details":"### 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: `\u003c 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.","aliases":["CVE-2026-55886"],"modified":"2026-07-31T14:45:18.913847711Z","published":"2026-06-18T13:05:01Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-06-18T13:05:01Z","nvd_published_at":"2026-07-01T21:17:04Z","cwe_ids":["CWE-1321"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/xdan/jodit/security/advisories/GHSA-vpmm-x3fm-qr5c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55886"},{"type":"PACKAGE","url":"https://github.com/xdan/jodit"}],"affected":[{"package":{"name":"jodit","ecosystem":"npm","purl":"pkg:npm/jodit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.12.26"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-vpmm-x3fm-qr5c/GHSA-vpmm-x3fm-qr5c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"}]}