Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-36010

CRITICAL 10.0EPSS 73%

Arbitrary code execution via function parsing in react-editable-json-tree

Also known as GHSA-j3rv-w43q-f9x2

Mitigation

  • Upgrade react-editable-json-tree to 2.2.2 or later.

Who should check

  • Projects that depend on npm package react-editable-json-tree (< 2.2.2)
  • Anyone running oxyno-zeta react-editable-json-tree < 2.2.2

Vulnerability facts

Affected
react-editable-json-tree < 2.2.2
Fixed in
2.2.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.40% chance of exploitation in 30 days (percentile 73, 2026-11-26)
CWE
CWE-95
Published
Modified

Description

This library allows strings to be parsed as functions and stored as a specialized component, [`JsonFunctionValue`](https://github.com/oxyno-zeta/react-editable-json-tree/blob/09a0ca97835b0834ad054563e2fddc6f22bc5d8c/src/components/JsonFunctionValue.js). To do this, Javascript's [`eval`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function is used to execute strings that begin with "function" as Javascript. This unfortunately could allow arbitrary code to be executed if it exists as a value within the JSON structure being displayed. Given that this component may often be used to display data from arbitrary, untrusted sources, this is extremely dangerous. One important note is that users who have defined a custom [`onSubmitValueParser`](https://github.com/oxyno-zeta/react-editable-json-tree/tree/09a0ca97835b0834ad054563e2fddc6f22bc5d8c#onsubmitvalueparser) callback prop on the [`JsonTree`](https://github.com/oxyno-zeta/react-editable-json-tree/blob/09a0ca97835b0834ad054563e2fddc6f22bc5d8c/src/JsonTree.js) component should be ***unaffected***. This vulnerability exists in the default `onSubmitValueParser` prop which calls [`parse`](https://github.com/oxyno-zeta/react-editable-json-tree/blob/master/src/utils/parse.js#L30). Prop is added to `JsonTree` called `allowFunctionEvaluation`. This prop will be set to `true` in v2.2.2, which allows upgrade without losing backwards-compatibility. In v2.2.2, we switched from using `eval` to using [`Function`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function) to construct anonymous functions. This is better than `eval` for the following reasons: - Arbitrary code should not be able to execute immediately, since the `Function` constructor explicitly *only creates* anonymous functions - Functions are created without local closures, so they only have access to the global scope If you use: - **Version `<2.2.2`**, you must upgrade as soon as possible. - **Version `^2.2.2`**, you must explicitly set `JsonTree`'s `allowFunctionEvaluation` prop to `false` to fully mitigate this vulnerability. - **Version `>=3.0.0`**, `allowFunctionEvaluation` is already set to `false` by default, so no further steps are necessary.

Affected and fixed versions

Package / productAffectedFixedSource
npm react-editable-json-tree< 2.2.22.2.2osv
oxyno-zeta react-editable-json-tree< 2.2.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-36010. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36010.md
Affected: react-editable-json-tree < 2.2.2
Fixed in: 2.2.2

Steps:
1. Search this machine and project for react-editable-json-tree (npm), oxyno-zeta react-editable-json-tree: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-36010 being exploited?

There is no confirmed exploitation: CVE-2022-36010 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.40% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-36010?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2022-36010?

react-editable-json-tree < 2.2.2.

Is there a fix for CVE-2022-36010?

Yes. Fixed in 2.2.2. Upgrade react-editable-json-tree to 2.2.2 or later.

How do I check if I'm affected by CVE-2022-36010?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors