CVE-2021-3822 Inefficient Regular Expression Complexity in josdejong/jsoneditor

Medium 5.3 Published Updated

Attackers can cause denial of service in josdejong/jsoneditor by triggering inefficient regular expression complexity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3822?

CVE-2021-3822 is a medium-severity denial of service vulnerability in josdejong/jsoneditor, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

jsoneditor is vulnerable to Inefficient Regular Expression Complexity

Weakness: CWE-400, CWE-1333

Which versions are affected by CVE-2021-3822?

2 open source packages ship an affected version, including jsoneditor. It affects 1 product.

PackageAffectedFixed in
jsoneditor npmAll versions9.5.6
jsoneditor npmAll versions9.5.6

Products include Jsoneditoronline Jsoneditor.

How do I fix CVE-2021-3822?

Upgrade jsoneditor to 9.5.6 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-3822 being exploited?

There is no known exploitation of CVE-2021-3822 in the wild and no public exploit code.

Sources

Also known as GHSA-hhfg-6hfc-rvxm.

Is CVE-2021-3822 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free