CVE-2022-23474

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-23474
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23474.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23474
Aliases
Published
2022-12-15T02:08:07Z
Modified
2025-11-04T19:43:39.193572Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
editor.js contains Code Injection
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/codex-team/editor.js

Affected ranges

Type
GIT
Repo
https://github.com/codex-team/editor.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.4.0

v1.*

v1.5

v2.*

v2.17
v2.18.0
v2.19.0
v2.19.1
v2.19.2
v2.19.2-rc.0
v2.19.2-rc.1
v2.19.2-rc.2
v2.19.3
v2.20.0
v2.20.1
v2.20.2
v2.21.0
v2.22.0
v2.22.1
v2.22.2
v2.22.3
v2.23.0
v2.23.0-rc.0
v2.23.0-rc.1
v2.23.0-rc.2
v2.23.1
v2.23.2
v2.24.0
v2.24.1
v2.24.2
v2.24.3
v2.25.0
v2.26.0-rc.0
v2.26.0-rc.1
v2.26.0-rc.5
v2.26.0-rc.6
v2.26.0-rc.7