{"id":"CVE-2022-23474","published":"2022-12-15T02:08:07Z","modified":"2025-04-17T18:14:12Z","title":"editor.js contains Code Injection","vendor":"codex-team","product":"editor.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00589,"percentile":0.49076,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codex-team/editor.js/pull/2100","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":9.82},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"codex-team","affectedVersions":[{"vendor":"codex-team","product":"editor.js","versions":["2.26.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-17T18:13:06.745963Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@editorjs/editorjs","vulnerableRanges":["<2.26.0"],"patched":["2.26.0"],"from":["GHSA-6mvj-2569-3mcm"],"provenance":"source"}],"summary":{"text":"The editor.js component of the editor.js block-style editor (from codex-team) contains a code injection flaw in its processHTML method, which passes pasted input directly into a wrapper's innerHTML property. An attacker can inject code by getting a user to paste crafted content into the editor, which requires user interaction and no privileges or authentication, and the attack can be carried out over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:47Z"},"euvd":{"id":"EUVD-2024-2515","exploited":false,"provenance":"source"}}