{"id":"CVE-2021-3822","aliases":["CLSA-2026-1780879896","EUVD-2021-2072","GHSA-hhfg-6hfc-rvxm"],"status":"published","title":"Inefficient Regular Expression Complexity in josdejong/jsoneditor","description":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01418,"percentile":0.73014,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333","CWE-400","CWE-697"],"published":"2021-09-27T12:25:28Z","modified":"2026-10-20T10:54:51Z","fixes":[{"ecosystem":"npm","package":"jsoneditor","fixed_in":["9.5.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"jsoneditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.5.6"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"jsoneditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0-tuxcare.0"},{"fixed":"5.19.0-tuxcare.1"}]}],"versions":["5.19.0"],"bundled":2},{"source":"osv","ecosystem":"npm","package":"jsoneditor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"9.5.6"}]}]}],"products":[{"vendor":"josdejong","product":"josdejong/jsoneditor"},{"vendor":"jsoneditoronline","product":"jsoneditor"}],"references":[{"url":"https://huntr.dev/bounties/1e3ed803-b7ed-42f1-a4ea-c4c75da9de73","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/josdejong/jsoneditor/commit/092e386cf49f2a1450625617da8e0137ed067c3e","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3822","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hhfg-6hfc-rvxm"},{"url":"https://github.com/josdejong/jsoneditor","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-3822","title":"Inefficient Regular Expression Complexity in josdejong/jsoneditor","description":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-27T12:25:28Z","modified":"2024-08-03T17:09:09.598Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:33:03.671751Z"}],"euvd":[{"id":"EUVD-2021-2072","description":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-27T12:25:28Z","modified":"2024-08-03T17:09:09Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-03T03:25:11.376657Z"}],"ghsa":[{"id":"GHSA-hhfg-6hfc-rvxm","title":"Regular Expression Denial of Service in jsoneditor","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.","status":"published","published":"2021-09-29T17:15:55Z","modified":"2025-02-12T05:11:06Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400","CWE-697","CWE-1333"],"updated_at":"2026-11-02T14:38:30.754382Z"}],"nvd":[{"id":"CVE-2021-3822","description":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-27T13:15:07.94Z","modified":"2026-06-17T04:05:50.36Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-1333","CWE-400"],"updated_at":"2026-11-02T14:06:58.933037Z"}],"osv":[{"id":"CVE-2021-3822","description":"jsoneditor is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-27T13:15:07.94Z","modified":"2026-10-20T10:54:51.074455459Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"GHSA-hhfg-6hfc-rvxm","title":"Regular Expression Denial of Service in jsoneditor","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.","status":"published","published":"2021-09-29T17:15:55Z","modified":"2023-11-08T04:06:26.529779Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1333","CWE-400","CWE-697"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"CLSA-2026-1780879896","title":"TuxCare security update for jsoneditor (2 CVEs)","description":"TuxCare rebuilt jsoneditor to address 2 CVEs. Fixed in 5.19.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:35Z","modified":"2026-10-15T09:47:50.752508371Z","updated_at":"2026-11-02T15:43:45.445699Z"}]}}
