All reports
High

Regular Expression Denial of Service in string package

Affected versions

Affected versions
<= 3.3.3
Fixed version
Not reported

Exploitation

CVE-2017-16116

Probability of exploitation in the next 30 days: 1.62%

FIRST EPSS · 2026-11-22

Description

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, however this patch has not been tested, nor has it been merged by the package author.

Links