Vulnerability library
Security checkJanuary 30, 2023

React Editable Json Tree vulnerable to arbitrary code execution via function parsing

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Our library allows strings to be parsed as functions and stored as a specialized component, JsonFunctionValue. To do this, Javascript’s eval function was used to execute strings that begin with “function” as Javascript.

Recommendation

Update the react-editable-json-tree package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.2.2
  • Patched version(s): 2.2.2

References

Could your website be exposed too?

SmartScanner can check your website for React Editable Json Tree vulnerable to arbitrary code execution via function parsing and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 30, 2023