{"id":"CVE-2021-3822","aliases":["CVE-2021-3822","GHSA-hhfg-6hfc-rvxm"],"related":[],"kind":"vulnerability","state":"published","title":"Inefficient Regular Expression Complexity in josdejong/jsoneditor","summary":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","summarySource":"cvelist","descriptions":[{"lang":"en","text":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"jsoneditor es vulnerable a una Complejidad de Expresiones Regulares Ineficientes","source":"nvd"}],"published":"2021-09-27T12:25:28.000Z","modified":"2026-06-17T04:05:50.360Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-697","CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"9.5.6","status":"affected"}],"vendor":"josdejong","product":"josdejong/jsoneditor","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.5.6"}],"ecosystem":"npm","package":"jsoneditor","purl":"pkg:npm/jsoneditor","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.5.6"}],"vendor":"jsoneditoronline","product":"jsoneditor","cpe":"cpe:2.3:a:jsoneditoronline:jsoneditor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/1e3ed803-b7ed-42f1-a4ea-c4c75da9de73","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/josdejong/jsoneditor/commit/092e386cf49f2a1450625617da8e0137ed067c3e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3822","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/josdejong/jsoneditor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3822","url":"https://www.cve.org/CVERecord?id=CVE-2021-3822","licence":"CVE Terms of Use","modified":"2024-08-03T17:09:09.598Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hhfg-6hfc-rvxm","url":"https://github.com/advisories/GHSA-hhfg-6hfc-rvxm","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:26.529Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3822","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3822","licence":"Public domain","modified":"2026-06-17T04:05:50.360Z"}],"updatedAt":"2026-11-25T22:58:04.167Z","epss":{"score":0.01418,"percentile":0.73579,"date":"2026-12-01T12:00:22.000Z"}}