Advisory

GHSA-hhfg-6hfc-rvxm

Also known as: CVE-2021-3822

Summary

Regular Expression Denial of Service in jsoneditor

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-29 17:15 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

jsoneditor

npm · All systems

Affected

  • introduced 0, fixed 9.5.6 (semver)

Fixed versions

9.5.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences