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


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (60th 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 Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-REACTEDITABLEJSONTREE-2982182
  • published16 Aug 2022
  • disclosed16 Aug 2022
  • creditPhanabani, Havrileck Alexandre

Introduced: 16 Aug 2022

CVE-2022-36010  (opens in a new tab)
CWE-95  (opens in a new tab)

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