{"id":"CVE-2022-23474","state":"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.","publishedAt":"2022-12-15T02:08:07.054Z","updatedAt":"2025-04-17T18:14:12.107Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["codex-team editor.js"],"affected":[{"vendor":"codex-team","product":"editor.js","versions":[{"version":"2.26.0","status":"affected"}]}],"references":["https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","https://github.com/codex-team/editor.js/pull/2100"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T19:49:40.939Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/23xxx/CVE-2022-23474.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-23474","state":"PUBLISHED","datePublished":"2022-12-15T02:08:07.054Z","dateUpdated":"2025-04-17T18:14:12.107Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","requesterUserId":"c184a3d9-dc98-4c48-a45b-d2d88cf0ac74","dateReserved":"2022-01-19T21:23:53.757Z"},"containers":{"cna":{"title":"editor.js contains Code Injection","descriptions":[{"lang":"en","value":"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":[{"vendor":"codex-team","product":"editor.js","versions":[{"version":"2.26.0","status":"affected"}]}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","name":"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","name":"https://github.com/codex-team/editor.js/pull/2100","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2022-12-15T02:08:07.054Z"},"source":{"advisory":"GHSA-6mvj-2569-3mcm","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","name":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/codex-team/editor.js/pull/2100","name":"https://github.com/codex-team/editor.js/pull/2100","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T03:43:46.063Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-17T18:13:06.745963Z","id":"CVE-2022-23474","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-17T18:14:12.107Z"}}]}}}