logo

CVE-2017-16116 string

Package

Manager: npm
Name: string
Vulnerable Version: >=0 <=3.3.3

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00366 pctl0.57767

Details

Regular Expression Denial of Service in string package 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.

Metadata

Created: 2018-07-24T20:16:11Z
Modified: 2023-09-12T20:48:10Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-g36h-6r4f-3mqp/GHSA-g36h-6r4f-3mqp.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-g36h-6r4f-3mqp
Finding: F002
Auto approve: 1