CVEBrief

Home / oxyno-zeta / react-editable-json-tree / CVE-2022-36010

CVE-2022-36010: is it exploited, and which versions of oxyno-zeta react-editable-json-tree are affected and fixed?

CVE-2022-36010 is a code injection through eval vulnerability in oxyno-zeta react-editable-json-tree. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: react-editable-json-tree before 2.2.2 (GitHub advisory GHSA-j3rv-w43q-f9x2). Fixed in 2.2.2 (GitHub advisory GHSA-j3rv-w43q-f9x2). Severity: Critical (10.0, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:46 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
react-editable-json-tree before 2.2.2
GitHub advisory GHSA-j3rv-w43q-f9x2
Fixed in
2.2.2
GitHub advisory GHSA-j3rv-w43q-f9x2
Severity
Critical 10.0
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
1.53% in 30 days
higher than 76% of CVEs; FIRST, December 2, 2026

What is CVE-2022-36010?

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

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.

From the CVE record by GitHub_M, last updated April 22, 2025, 17:41 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
oxyno-zetareact-editable-json-tree< 2.2.2

As the CVE record by GitHub_M states it, last updated April 22, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmreact-editable-json-tree< 2.2.22.2.2GHSA-j3rv-w43q-f9x2

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 18, 2022. Summary: React Editable Json Tree vulnerable to arbitrary code execution via function parsing.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
react editable json tree projectreact editable json treebefore 2.2.2application

NVD analysis (status Modified), last modified June 17, 2026, 04:52 UTC.

How severe is CVE-2022-36010?

ScoreVersionVectorSource
Critical 10.0CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HGitHub_M
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2022-36010 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, April 22, 2025)
EPSS
1.53% probability of exploitation activity in the next 30 days, percentile 75.5 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
July 15, 2022
Published
August 15, 2022, 18:30 UTC
CVE record updated
April 22, 2025, 17:41 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 04:52 UTC
Last checked
CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:46 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2022-36010

Is CVE-2022-36010 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.53% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of oxyno-zeta react-editable-json-tree are affected by CVE-2022-36010?

react-editable-json-tree before 2.2.2, per the GitHub advisory GHSA-j3rv-w43q-f9x2. The tables above give every range the sources list.

Which version fixes CVE-2022-36010?

2.2.2, per the GitHub advisory GHSA-j3rv-w43q-f9x2. Check the vendor's advisory before you rely on it.

How severe is CVE-2022-36010?

Critical (10.0, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2022-36010?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.