logo

NPM-CONTENT-TYPE-PARSER-20170905 content-type-parser

Package

Manager: npm
Name: content-type-parser
Vulnerable Version: >=0 <=1.0.2

Severity

Level: Low

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

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

EPSS: N/A pctlN/A

Details

content-type-parser is a Parse the value of the Content-Type header. content-type-parser package has been replaced by whatwg-mimetype. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). It used a regular expression (/^(.*?)/(.*?)([ ]*;.*)?$/) in order to parse user agents. This can cause a very moderate impact of about 4 seconds matching time for data 30k characters long.

Metadata

Created:
Modified:
Source: MANUAL
CWE IDs: ["CWE-400"]
Alternative ID: N/A
Finding: F067
Auto approve: 1