{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-23474","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.","descriptionLong":"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.","published":"2022-12-15T02:08:07.054Z","updated":"2026-10-28T02:30:48.869881294Z","reserved":"2022-01-19T21:23:53.757Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"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","rating":"medium","source":"GitHub_M"},{"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","rating":"medium","source":"github.com"},{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["codex-team editor.js"],"affectedProducts":[{"vendor":"codex-team","product":"editor.js","defaultStatus":null,"versions":[{"version":"2.26.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@editorjs/editorjs","purl":"pkg:npm/%40editorjs/editorjs","ranges":["<2.26.0"],"fixed":["2.26.0"],"advisory":"GHSA-6mvj-2569-3mcm"}],"cwes":["CWE-94","CWE-79"],"aliases":["GHSA-6mvj-2569-3mcm"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23474.json","tags":["advisory"]},{"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://github.com/codex-team/editor.js","tags":["package"]},{"url":"https://securitylab.github.com/advisories","tags":["web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00569,"epssPercentile":0.47835,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-23474","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-23474","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6mvj-2569-3mcm","ok":true,"note":"GHSA-6mvj-2569-3mcm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-23474","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}