{"id":"GHSA-5957-5c94-3v7w","revision":"e9f56f61d3e448e8b699fe82fbf0a474","records":[{"revision":"e9f56f61d3e448e8b699fe82fbf0a474","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5957-5c94-3v7w","aliases":["CVE-2026-54756"],"title":"Jodit has prototype pollution via Jodit.configure() / ConfigMerge","description":"### Summary\n`Jodit.configure(options)` — and the internal `ConfigMerge` / `ConfigProto` helpers — merged user-supplied options into the editor configuration without filtering prototype-mutating keys. A payload nested under an existing plain-object option such as `controls` could reach and mutate `Object.prototype` (prototype pollution).\n\n### Affected\n- Package: `jodit` (npm)\n- Versions: `< 4.12.18`\n- Public API: `Jodit.configure(options)`\n\n### Proof of Concept\n```js\nimport { Jodit } from 'jodit';\ndelete Object.prototype.polluted;\nJodit.configure(JSON.parse('{\"controls\":{\"__proto__\":{\"polluted\":\"yes\"}}}'));\nconsole.log(({}).polluted); // \"yes\" (before the fix)\ndelete Object.prototype.polluted;\n```\n\n### Impact\nApplications that pass user-controlled or partially user-controlled configuration into `Jodit.configure()` could be vulnerable to prototype pollution: unexpected property injection, logic bypass, denial of service, or secondary security issues.\n\n### Patch\nFixed in 4.12.18 by rejecting `__proto__`, `constructor`, and `prototype` at every merge level in `ConfigMerge` and `ConfigProto`.\n\n### Credit\nResponsibly reported by Junming Wu.","state":0,"publishedAt":"2026-07-31T19:10:16+00:00","modifiedAt":"2026-07-31T19:15:24.2221311+00:00","affected":[{"ecosystem":"npm","name":"jodit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.12.18"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/xdan/jodit/security/advisories/GHSA-5957-5c94-3v7w","https://nvd.nist.gov/vuln/detail/CVE-2026-54756","https://github.com/xdan/jodit/commit/d298397bc993793b17145806c15f7dae53f90104","https://github.com/xdan/jodit","https://github.com/xdan/jodit/releases/tag/4.12.18"],"sourceUrl":"https://github.com/advisories/GHSA-5957-5c94-3v7w","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5957-5c94-3v7w","identifiers":["GHSA-5957-5c94-3v7w","CVE-2026-54756"]},"retained":false,"historicalAffected":[]}],"coverage":[]}