GHSA-hhfg-6hfc-rvxm

Suggest an improvement
Source
https://github.com/advisories/GHSA-hhfg-6hfc-rvxm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-hhfg-6hfc-rvxm/GHSA-hhfg-6hfc-rvxm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-hhfg-6hfc-rvxm
Aliases
Published
2021-09-29T17:15:55Z
Modified
2023-11-01T04:55:58.283811Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2021-09-27T13:15:00Z",
    "cwe_ids": [
        "CWE-1333",
        "CWE-400",
        "CWE-697"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-09-28T20:52:54Z"
}
References

Affected packages

npm / jsoneditor

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
9.5.6

Ecosystem specific

{
    "affected_functions": [
        "(jsoneditor).getInnerText"
    ]
}