Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. editor.js
  4. ›
  5. CVE-2022-23474

CVE-2022-23474: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

December 15, 2022 (updated December 20, 2022)

Editor.js is a block-style editor with clean JSON output. Versions prior to 2.26.0 is 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.

References

  • github.com/codex-team/editor.js/pull/2100
  • nvd.nist.gov/vuln/detail/CVE-2022-23474
  • securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/

Code Behaviors & Features

Detect and mitigate CVE-2022-23474 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.26.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/editor.js/CVE-2022-23474.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.