# CVE-2022-23474: editor.js contains Code Injection

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-12-15T02:08:07.054Z
- Modified: 2026-06-17T04:30:11.840Z
- Also known as: GHSA-6mvj-2569-3mcm
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- codex-team editor.js: 2.26.0
- @editorjs/editorjs (npm): before 2.26.0
- codex editor.js: before 2.26.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/> (exploit, patch, third-party-advisory)
- <https://github.com/codex-team/editor.js/pull/2100> (exploit, patch, third-party-advisory, web)
- <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)
- <https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js> (advisory)

## Sources

- CVE List: [CVE-2022-23474](https://www.cve.org/CVERecord?id=CVE-2022-23474), CVE Terms of Use, modified 2025-04-17
- GitHub Advisory Database: [GHSA-6mvj-2569-3mcm](https://github.com/advisories/GHSA-6mvj-2569-3mcm), CC-BY-4.0, modified 2024-08-05
- NVD: [CVE-2022-23474](https://nvd.nist.gov/vuln/detail/CVE-2022-23474), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23474 · Whole record: https://cve.day/CVE-2022-23474.json · Rebuilt by cve.day 2026-11-25T22:58:17.552Z
