CVE-2022-23474 json
editor.js contains Code Injection
published 3y ago modified 4mo ago also GHSA-6mvj-2569-3mcm , EUVD-2024-2515
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @editorjs/editorjs 2.26.0
- codex editor.js 2.26.0
Is CVE-2022-23474 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/codex-team/editor.js/pull/2100 referenced PoC, tagged "exploit" by a source, unverified
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @editorjs/editorjs | <2.26.0 |
2.26.0 |
Affected products
- codex-team editor.js
Classification
References
-
github.com
/codex-team/editor.js/pull/2100
web, exploit, patch, third-party-advisory
-
securitylab.github.com
/advisories/GHSL-2022-028_codex-team_editor_js/
exploit, patch, third-party-advisory
-
github.com
/codex-team/editor.js/commit/f659015be6de8e6f0c322c5ff4d1a4532d2f29a2
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-23474
advisory
-
github.com
/codex-team/editor.js
package
-
securitylab.github.com
/advisories
web
-
securitylab.github.com
/advisories/GHSL-2022-028_codex-team_editor_js
advisory
Sources
- CVE List CVE-2022-23474
- GitHub Advisory GHSA-6mvj-2569-3mcm
- NVD CVE-2022-23474
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.