codex-team/editor.js · Security
Editor.js vulnerable to Code Injection
- GHSA ID
- GHSA-6mvj-2569-3mcm
- CVE ID
- CVE-2022-23474
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v4
- 5.3 · 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
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.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-23474 ↗
- https://github.com/codex-team/editor.js/pull/2100 ↗
- https://github.com/codex-team/editor.js/commit/f659015be6de8e6f0c322c5ff4d1a4532d2f29a2 ↗
- https://securitylab.github.com/advisories ↗
- https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js ↗
- https://github.com/advisories/GHSA-6mvj-2569-3mcm ↗