Skip to content
Heist/ feed
Back to feed
Medium

editor.js contains Code Injection

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23474
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 01:16 UTC · Revision 1

Source evidence

editor.js contains Code Injection

core-osv · Original source

Published 15 Dec 2022, 02:08 UTC

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.

osv:CVE-2022-23474
Complete source record
{
  "id": "dd893479d67da8c20ef8270612cd9e4519adae0cc1effa00196c19fb358952ef",
  "url": "https://osv.dev/vulnerability/CVE-2022-23474",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "editor.js contains Code Injection",
    "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.",
    "evidence": "osv:CVE-2022-23474",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-23474",
      "aliases": [
        "CVE-2022-23474",
        "GHSA-6mvj-2569-3mcm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/codex-team/editor.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "320a30afcce0ba5bd95ee7cdeb6379a5fc88ce15"
                },
                {
                  "fixed": "320a30afcce0ba5bd95ee7cdeb6379a5fc88ce15"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.26.0"
                      },
                      {
                        "last_affected": "2.26.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "cpe": "cpe:2.3:a:codex:editor.js:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.26.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.26.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23474.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.869881294Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23474.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23474",
        "https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/",
        "https://github.com/codex-team/editor.js/pull/2100"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23474.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23474",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516909,
  "published_at": "2022-12-15T02:08:07.054+00:00"
}