CVE-2026-55886
JSON

6.3medium

Jodit Editor: Prototype Pollution in Jodit via Jodit.modules.Helpers.set()

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vpmm-x3fm-qr5c

Description

Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. Versions prior to 4.12.26 are vulnerable to Prototype Pollution through Jodit.modules.Helpers.set(chain, value, obj), which 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. Applications that pass a user-controlled or partially user-controlled key path into Jodit.modules.Helpers.set() could be vulnerable, causing unexpected property injection, logic bypass, denial of service, or secondary security issues. This issue has been fixed in version 4.12.26.

Affected

Product or packageVersionsReported by
xdan jodit< 4.12.26CVE List
jodit (npm)before 4.12.26GitHub Advisory Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Classification

CWE-1321

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Jodit Editor is a WYSIWYG editor with written in pure TypeScript file and image editing capabilities. Versions prior to 4.12.26 are vulnerable to Prototype Pollution through Jodit.modules.Helpers.set(chain, value, obj), which 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. Applications that pass a user-controlled or partially user-controlled key path into Jodit.modules.Helpers.set() could be vulnerable, causing unexpected property injection, logic bypass, denial of service, or secondary security issues. This issue has been fixed in version 4.12.26.

GitHub Advisory Database
Summary

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).

Affected
  • Package: jodit (npm)
  • Versions: < 4.12.26
  • Public API: Jodit.modules.Helpers.set(chain, value, obj)
Proof of Concept
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;
Impact

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.

Patch

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.

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. Las versiones anteriores a la 4.12.26 son vulnerables a la Contaminación de Prototipos a través de Jodit.modules.Helpers.set(chain, value, obj), que recorre la cadena separada por puntos, creando y siguiendo cada segmento de ruta sin filtrar claves que mutan el prototipo. Una cadena que comienza con (o contiene) __proto__, constructor o prototype permite que la asignación final alcance y mute Object.prototype. Las aplicaciones que pasan una ruta de clave controlada por el usuario o parcialmente controlada por el usuario a Jodit.modules.Helpers.set() podrían ser vulnerables, causando inyección de propiedades inesperada, omisión de lógica, denegación de servicio o problemas de seguridad secundarios. Este problema ha sido corregido en la versión 4.12.26.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55886 changed 2026-07-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-vpmm-x3fm-qr5c changed 2026-07-31CC-BY-4.0
NVDCVE-2026-55886 changed 2026-10-25Public domain