Medium, CVSS 5.3npmAmendedPublished
Editor.js vulnerable to Code Injection
CVE-2022-23474 · GHSA-6mvj-2569-3mcm
- Affected
- npm @editorjs/editorjs < 2.26.0
- Fixed in
- 2.26.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 2.26.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.