Skip to content

Regular Expression Denial of Service in jsoneditor

Moderate severity GitHub Reviewed Published Sep 29, 2021 to the GitHub Advisory Database • Updated Nov 29, 2023

Package

npm jsoneditor (npm)

Affected versions

< 9.5.6

Patched versions

9.5.6

Description

JSON Editor is a web-based tool to view, edit, format, and validate JSON. It has various modes such as a tree editor, a code editor, and a plain text editor. The jsoneditor package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted element as input to the getInnerText function may cause an application to consume an excessive amount of CPU. Below pinned line using vulnerable regex.

References

Published by the National Vulnerability Database Sep 27, 2021
Reviewed Sep 28, 2021
Published to the GitHub Advisory Database Sep 29, 2021
Last updated Nov 29, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVE ID

CVE-2021-3822

GHSA ID

GHSA-hhfg-6hfc-rvxm

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.