{"id":"CVE-2022-23474","aliases":["EUVD-2024-2515","GHSA-6mvj-2569-3mcm"],"status":"published","title":"editor.js contains Code Injection","description":"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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00569,"percentile":0.47453,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79","CWE-94"],"published":"2022-12-15T02:08:07Z","modified":"2026-10-28T02:30:48Z","fixes":[{"ecosystem":"npm","package":"@editorjs/editorjs","fixed_in":["2.26.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@editorjs/editorjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.26.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@editorjs/editorjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.26.0"}]}]}],"products":[{"vendor":"codex","product":"editor.js"},{"vendor":"codex-team","product":"editor.js"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","advisory"]},{"url":"https://github.com/codex-team/editor.js/pull/2100","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474","tags":["advisory"]},{"url":"https://github.com/codex-team/editor.js/commit/f659015be6de8e6f0c322c5ff4d1a4532d2f29a2","tags":["web"]},{"url":"https://securitylab.github.com/advisories","tags":["web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6mvj-2569-3mcm"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23474.json","tags":["advisory"]},{"url":"https://github.com/codex-team/editor.js","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-23474","title":"editor.js contains Code Injection","description":"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.","status":"published","published":"2022-12-15T02:08:07.054Z","modified":"2025-04-17T18:14:12.107Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:29.842547Z"}],"euvd":[{"id":"EUVD-2024-2515","description":"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.","status":"published","published":"2022-12-15T02:08:07Z","modified":"2025-04-17T18:14:12Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:52:21.05399Z"}],"ghsa":[{"id":"GHSA-6mvj-2569-3mcm","title":"Editor.js vulnerable to Code Injection","description":"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.","status":"published","published":"2024-08-05T21:18:57Z","modified":"2024-08-05T21:19:01Z","cvss":[{"version":"4.0","score":5.3,"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","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-94"],"updated_at":"2026-11-02T14:37:57.422393Z"}],"nvd":[{"id":"CVE-2022-23474","description":"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.","status":"published","published":"2022-12-15T19:15:16.613Z","modified":"2026-06-17T04:30:11.84Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-94","CWE-79"],"updated_at":"2026-11-02T14:07:33.649381Z"}],"osv":[{"id":"CVE-2022-23474","title":"editor.js contains Code Injection","description":"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.","status":"published","published":"2022-12-15T02:08:07.054Z","modified":"2026-10-28T02:30:48.869881294Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:24.061177Z"},{"id":"GHSA-6mvj-2569-3mcm","title":"Editor.js vulnerable to Code Injection","description":"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.","status":"published","published":"2024-08-05T21:18:57Z","modified":"2024-08-05T21:41:56.3613Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.3,"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","level":"medium"}],"cwes":["CWE-79","CWE-94"],"updated_at":"2026-11-02T15:46:39.965326Z"}]}}
