logo

CVE-2017-16115 timespan

Package

Manager: npm
Name: timespan
Vulnerable Version: >=0 <=2.3.0

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.0028 pctl0.51006

Details

Regular Expression Denial of Service in timespan Affected versions of `timespan` are vulnerable to a regular expression denial of service when parsing dates. The amplification for this vulnerability is significant, with 50,000 characters resulting in the event loop being blocked for around 10 seconds. ## Recommendation No direct patch is available for this vulnerability. Currently, the best available solution is to use a functionally equivalent alternative package. It is also sufficient to ensure that user input is not being passed into `timespan`, or that the maximum length of such user input is drastically reduced. Limiting the input length to 150 characters should be sufficient in most cases.

Metadata

Created: 2018-08-29T23:04:14Z
Modified: 2023-09-13T19:38:19Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-f523-2f5j-gfcg/GHSA-f523-2f5j-gfcg.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-f523-2f5j-gfcg
Finding: F002
Auto approve: 1