Advisory

GHSA-g36h-6r4f-3mqp

Also known as: CVE-2017-16116

Summary

Regular Expression Denial of Service in string package

Details

Affected versions of string are vulnerable to regular expression denial of service when specifically crafted untrusted user input is passed into the underscore or unescapeHTML methods.

Recommendation

There is currently no direct patch for this vulnerability.

Currently, the best solution is to avoid passing user input to the underscore and unescapeHTML methods.

Alternatively, a user provided patch is available in [Pull Request #217]( https://github.com/jprichardson/string.js/pull/217/commits/eab9511e4efbc8c521e18b6cf2e8565ae50c5a16), however this patch has not been tested, nor has it been merged by the package author.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-07-24 20:16 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

string

npm · All systems

Affected

  • introduced 0, last affected 3.3.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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