The Node.js Project Node.js
At a glance
- Source
- NVD
- EPSS
- EPSS 3.39 % · percentile 89 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- nodejs
- NVD status
- Modified
Description
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
Weaknesses (CWE)
- CWE-185 — Incorrect Regular Expression
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2018-18901
- GCVE · GCVE-0-2018-7158
Affected configurations (NVD CPE)
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*≥ 4.0.0 ≤ 4.1.2cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*≥ 4.2.0 ≤ 4.9.1
Affected products
| Product | Versions |
|---|---|
| The Node.js Project · Node.js | affected 4.x |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |