Arbitrary Code Injection Affecting @editorjs/editorjs package, versions <2.26.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.09% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-EDITORJSEDITORJS-3173596
  • published 16 Dec 2022
  • disclosed 16 Dec 2022
  • credit Stephan Brandauer, Erik Krogh Kristensen

How to fix?

Upgrade @editorjs/editorjs to version 2.26.0 or higher.

Overview

@editorjs/editorjs is an Editor.js — Native JS, based on API and Open Source

Affected versions of this package are vulnerable to Arbitrary Code Injection via pasted input. The processHTML method passes pasted input into wrapper’s innerHTML.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

6.1 medium