Advisory

GHSA-v2p6-4mp7-3r9v

Also known as: None

Summary

Regular Expression Denial of Service in underscore.string

Details

Versions of underscore.string prior to *3.3.5* are vulnerable to Regular Expression Denial of Service (ReDoS).

The function unescapeHTML is vulnerable to ReDoS due to an overly-broad regex. The slowdown is approximately 2s for 50,000 characters but grows exponentially with larger inputs.

Recommendation

Upgrade to version 3.3.5 or higher.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-06-14 16:26 UTC
Modified
2020-08-31 18:34 UTC

Affected packages and fixes

underscore.string

npm · All systems

Affected

  • introduced 0, fixed 3.3.5 (semver)

Fixed versions

3.3.5

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