Eval Injection Affecting react-editable-json-tree package, versions <2.2.2


Severity

0.0
critical
0
10

    Threat Intelligence

    EPSS
    0.21% (59th 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-REACTEDITABLEJSONTREE-2982182
  • published 16 Aug 2022
  • disclosed 16 Aug 2022
  • credit Phanabani, Havrileck Alexandre

How to fix?

Upgrade react-editable-json-tree to version 2.2.2 or higher.

Overview

react-editable-json-tree is a React Editable Json Tree

Affected versions of this package are vulnerable to Eval Injection due to missing sanitization of values within the JSON structure being displayed.

Note:

In order to fully mitigate this vulnerability user must set the JsonTree component's allowFunctionEvaluation prop to false

Users who have defined a custom onSubmitValueParser callback prop on the JsonTree component are unaffected.

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

9.8 critical