CVE-2021-3822: Regular Expression Denial of Service in jsoneditor
Summary
CVE-2021-3822: Regular Expression Denial of Service in jsoneditor. Affects jsoneditor versions < 9.5.6. Fixed in 9.5.6. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
JSON Editor is a web-based tool used for viewing, editing, formatting, and validating JSON. It offers various modes such as a tree editor, code editor, and plain text editor. The jsoneditor package, an npm package, is susceptible to a Regular Expression Denial of Service (ReDoS) vulnerability. This vulnerability arises from the getInnerText function, which can be exploited by an attacker to cause excessive CPU consumption in an application.
Vulnerability Detail
The jsoneditor package is vulnerable to ReDoS (regular expression denial of service). By providing a crafted element as input to the getInnerText function, an attacker can cause an application to consume an excessive amount of CPU. This can lead to a denial of service (DoS) situation, where the application becomes unresponsive or crashes. The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.
How To Fix
Latest published version: 10.4.3 as of 22 Oct 2026
npm install jsoneditor@10.4.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
9.5.6
This is the first release that contains the fix.
npm install jsoneditor@9.5.6
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the jsoneditor package to the fixed version.
Conclusion
The jsoneditor package is vulnerable to a ReDoS vulnerability, which can lead to a denial of service situation. It is crucial to update the package to version 9.5.6 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for jsoneditor →
FAQ
JSON Editor is a web-based tool used for viewing, editing, formatting, and validating JSON data.
ReDoS (Regular Expression Denial of Service) is a type of vulnerability where a crafted input can cause a regular expression matching algorithm to exhibit exponential time complexity. This can lead to excessive CPU consumption and a denial of service situation.
The vulnerability in the jsoneditor package can cause an application to consume an excessive amount of CPU, leading to a denial of service situation. This can result in the application becoming unresponsive or crashing.
The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.
To fix this vulnerability, it is recommended to update the jsoneditor package to version 9.5.6 or later. This version includes a fix for the ReDoS vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for jsoneditor.