Vulnerability Details : CVE-2022-23474
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2022-23474
- cpe:2.3:a:codex:editor.js:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-23474
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 37 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-23474
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2022-23474
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: nvd@nist.gov (Primary)
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2022-23474
-
https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/
GHSL-2022-028: Copy/paste cross-site scripting (XSS) in codex-team | GitHub Security LabExploit;Patch;Third Party Advisory
-
https://github.com/codex-team/editor.js/pull/2100
fix(tools-api): pasteConfig.tags now supports a sanitize config by robonetphy · Pull Request #2100 · codex-team/editor.js · GitHubExploit;Patch;Third Party Advisory
Jump to