CVE-2022-23474
MEDIUM 6.1CVSS 3.1Editor.js vulnerable to Code Injection
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
- 15 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-94
- Also known as
- GHSA-6mvj-2569-3mcm
- Sources
- NVDJSONOSV GHSA-6mvj-2569-3mcmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | codex | editor.jscpe:2.3:a:codex:editor.js:*:*:*:*:*:node.js:*:* |
< 2.26.0 | 2.26.0 |
| OSV | npm | @editorjs/editorjs | < 2.26.0 | 2.26.0 |
References
- https://github.com/codex-team/editor.js/pull/2100 · Exploit, Patch, Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/ · Exploit, Patch, Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23474 · ADVISORY
- https://github.com/codex-team/editor.js/commit/f659015be6de8e6f0c322c5ff4d1a4532d2f29a2 · WEB
- https://github.com/codex-team/editor.js · PACKAGE
- https://securitylab.github.com/advisories · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 15 Dec 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Aug 2024)