ADVISORIES

GitHub Advisory Database

GHSA-6mvj-2569-3mcm

Editor.js vulnerable to Code Injection

Moderate CVE-2022-23474

Details

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.

Affected packages

EcosystemPackageAffected versions
npm@editorjs/editorjs
All versions before 2.26.0 (fixed in 2.26.0)

References