Editor.js vulnerable to Code Injection
Date: 2024-08
Affected: npm/@editorjs/editorjs
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-23474
CWE: CWE-79
CWE-94
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

Editor.js is a block-style editor with clean JSON output. Versions prior to 2.26.0 are vulnerable to Code Injection via pasted input. The processHTML method passes pasted input into wrapper’s innerHTML. This issue is patched in version 2.26.0.


Mitigations:

Architectural layers (MAESTRO):