{"id":"CVE-2022-23474","aliases":["CVE-2022-23474","GHSA-6mvj-2569-3mcm"],"related":[],"kind":"vulnerability","state":"published","title":"editor.js contains Code Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Editor.js es un editor de estilo de bloque con salida JSON limpia. Las versiones anteriores a la 2.26.0 son vulnerables a la inyección de código mediante entradas pegadas. El método ProcessHTML pasa la entrada pegada al HTML interno del contenedor. Este problema se solucionó en la versión 2.26.0.","source":"nvd"}],"published":"2022-12-15T02:08:07.054Z","modified":"2026-06-17T04:30:11.840Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-94"],"affected":[{"ranges":[{"version":"2.26.0","status":"affected"}],"vendor":"codex-team","product":"editor.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.26.0"}],"ecosystem":"npm","package":"@editorjs/editorjs","purl":"pkg:npm/%40editorjs/editorjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.26.0"}],"vendor":"codex","product":"editor.js","cpe":"cpe:2.3:a:codex:editor.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","tags":["exploit","patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/codex-team/editor.js/pull/2100","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/codex-team/editor.js/commit/f659015be6de8e6f0c322c5ff4d1a4532d2f29a2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/codex-team/editor.js","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories","tags":["web"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-17T18:13:06.745Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23474","url":"https://www.cve.org/CVERecord?id=CVE-2022-23474","licence":"CVE Terms of Use","modified":"2025-04-17T18:14:12.107Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6mvj-2569-3mcm","url":"https://github.com/advisories/GHSA-6mvj-2569-3mcm","licence":"CC-BY-4.0","modified":"2024-08-05T21:41:56.361Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23474","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474","licence":"Public domain","modified":"2026-06-17T04:30:11.840Z"}],"updatedAt":"2026-11-25T22:58:17.552Z","epss":{"score":0.00589,"percentile":0.49527,"date":"2026-12-01T12:00:22.000Z"}}