6.3medium
Jodit Editor: Prototype pollution via Jodit.configure() / ConfigMerge
- Severity
- 6.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.27% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5957-5c94-3v7w
Description
Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. In versions prior to 4.12.18, Jodit.configure(options) — and the internal ConfigMerge / ConfigProto helpers — merged user-supplied options into the editor configuration without filtering prototype-mutating keys, potentially causing a Prototype Pollution vulnerability. A payload nested under an existing plain-object option such as controls could reach and mutate Object.prototype. Applications that pass user-controlled or partially user-controlled configuration into Jodit.configure() may be vulnerable. This issue was fixed in version 4.12.18.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xdan jodit | < 4.12.18 | CVE List |
| jodit (npm) | before 4.12.18 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. In versions prior to 4.12.18, Jodit.configure(options) — and the internal ConfigMerge / ConfigProto helpers — merged user-supplied options into the editor configuration without filtering prototype-mutating keys, potentially causing a Prototype Pollution vulnerability. A payload nested under an existing plain-object option such as controls could reach and mutate Object.prototype. Applications that pass user-controlled or partially user-controlled configuration into Jodit.configure() may be vulnerable. This issue was fixed in version 4.12.18.
GitHub Advisory Database
Summary
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).
Affected
- Package:
jodit(npm) - Versions:
< 4.12.18 - Public API:
Jodit.configure(options)
Proof of Concept
import { Jodit } from 'jodit';
delete Object.prototype.polluted;
Jodit.configure(JSON.parse('{"controls":{"__proto__":{"polluted":"yes"}}}'));
console.log(({}).polluted); // "yes" (before the fix)
delete Object.prototype.polluted;
Impact
Applications 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.
Patch
Fixed in 4.12.18 by rejecting __proto__, constructor, and prototype at every merge level in ConfigMerge and ConfigProto.
Credit
Responsibly reported by Junming Wu.
NVD (es)
Jodit Editor es un editor WYSIWYG escrito en TypeScript puro con capacidades de edición de archivos e imágenes. En versiones anteriores a la 4.12.18, Jodit.configure(options) - y los ayudantes internos ConfigMerge / ConfigProto - fusionaban opciones proporcionadas por el usuario en la configuración del editor sin filtrar claves que mutan el prototipo, lo que podría causar una vulnerabilidad de Prototype Pollution. Una carga útil anidada bajo una opción de objeto plano existente como controls podría alcanzar y mutar Object.prototype. Las aplicaciones que pasan configuración controlada por el usuario o parcialmente controlada por el usuario a Jodit.configure() pueden ser vulnerables. Este problema fue solucionado en la versión 4.12.18.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54756 changed 2026-07-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5957-5c94-3v7w changed 2026-07-31 | CC-BY-4.0 |
| NVD | CVE-2026-54756 changed 2026-10-25 | Public domain |