Vulnerable Library - pug-2.0.3.tgz
A clean, whitespace-sensitive template language for writing HTML
Library home page: https://registry.npmjs.org/pug/-/pug-2.0.3.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/pug/package.json
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Vulnerabilities
CVE |
Severity |
CVSS |
Dependency |
Type |
Fixed in (pug version) |
Remediation Available |
CVE-2019-10744 |
High |
9.1 |
lodash-4.17.11.tgz |
Transitive |
2.0.4 |
✅ |
CVE-2021-21353 |
High |
9.0 |
detected in multiple dependencies |
Direct |
3.0.0-canary-1 |
✅ |
CVE-2021-23343 |
High |
7.5 |
path-parse-1.0.6.tgz |
Transitive |
2.0.4 |
✅ |
CVE-2020-8203 |
High |
7.4 |
lodash-4.17.11.tgz |
Transitive |
2.0.4 |
✅ |
CVE-2021-23337 |
High |
7.2 |
lodash-4.17.11.tgz |
Transitive |
2.0.4 |
✅ |
CVE-2020-28500 |
Medium |
5.3 |
lodash-4.17.11.tgz |
Transitive |
2.0.4 |
✅ |
Details
CVE-2019-10744
Vulnerable Library - lodash-4.17.11.tgz
Lodash modular utilities.
Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/lodash/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- pug-filters-3.1.0.tgz
- constantinople-3.1.2.tgz
- babel-types-6.26.0.tgz
- ❌ lodash-4.17.11.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
Versions of lodash lower than 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep could be tricked into adding or modifying properties of Object.prototype using a constructor payload.
Publish Date: 2019-07-26
URL: CVE-2019-10744
CVSS 3 Score Details (9.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: High
- Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: GHSA-jf85-cpcp-j695
Release Date: 2019-07-26
Fix Resolution (lodash): 4.17.12
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
CVE-2021-21353
Vulnerable Libraries - pug-2.0.3.tgz, pug-code-gen-2.0.1.tgz
pug-2.0.3.tgz
A clean, whitespace-sensitive template language for writing HTML
Library home page: https://registry.npmjs.org/pug/-/pug-2.0.3.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/pug/package.json
Dependency Hierarchy:
- ❌ pug-2.0.3.tgz (Vulnerable Library)
pug-code-gen-2.0.1.tgz
Default code-generator for pug. It generates HTML via a JavaScript template function.
Library home page: https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-2.0.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/pug-code-gen/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- ❌ pug-code-gen-2.0.1.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the pretty
option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the pretty
option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade.
Publish Date: 2021-03-03
URL: CVE-2021-21353
CVSS 3 Score Details (9.0)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Changed
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: GHSA-p493-635q-r6gr
Release Date: 2021-03-03
Fix Resolution (pug-code-gen): 2.0.3
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
CVE-2021-23343
Vulnerable Library - path-parse-1.0.6.tgz
Node.js path.parse() ponyfill
Library home page: https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/path-parse/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- pug-filters-3.1.0.tgz
- resolve-1.8.1.tgz
- ❌ path-parse-1.0.6.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.
Publish Date: 2021-05-04
URL: CVE-2021-23343
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Release Date: 2021-05-04
Fix Resolution (path-parse): 1.0.7
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
CVE-2020-8203
Vulnerable Library - lodash-4.17.11.tgz
Lodash modular utilities.
Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/lodash/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- pug-filters-3.1.0.tgz
- constantinople-3.1.2.tgz
- babel-types-6.26.0.tgz
- ❌ lodash-4.17.11.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
Prototype pollution attack when using _.zipObjectDeep in lodash before 4.17.20.
Publish Date: 2020-07-15
URL: CVE-2020-8203
CVSS 3 Score Details (7.4)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: High
- Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: https://www.npmjs.com/advisories/1523
Release Date: 2020-07-15
Fix Resolution (lodash): 4.17.19
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
CVE-2021-23337
Vulnerable Library - lodash-4.17.11.tgz
Lodash modular utilities.
Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/lodash/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- pug-filters-3.1.0.tgz
- constantinople-3.1.2.tgz
- babel-types-6.26.0.tgz
- ❌ lodash-4.17.11.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Publish Date: 2021-02-15
URL: CVE-2021-23337
CVSS 3 Score Details (7.2)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: High
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Release Date: 2021-02-15
Fix Resolution (lodash): 4.17.21
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
CVE-2020-28500
Vulnerable Library - lodash-4.17.11.tgz
Lodash modular utilities.
Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/lodash/package.json
Dependency Hierarchy:
- pug-2.0.3.tgz (Root Library)
- pug-filters-3.1.0.tgz
- constantinople-3.1.2.tgz
- babel-types-6.26.0.tgz
- ❌ lodash-4.17.11.tgz (Vulnerable Library)
Found in HEAD commit: 0b2f3b3be174bbf9facd61f644e49627d59aea49
Found in base branch: main
Vulnerability Details
Lodash versions prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions.
Mend Note: After conducting further research, Mend has determined that CVE-2020-28500 only affects environments with versions 4.0.0 to 4.17.20 of Lodash.
Publish Date: 2021-02-15
URL: CVE-2020-28500
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: Low
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28500
Release Date: 2021-02-15
Fix Resolution (lodash): 4.17.21
Direct dependency fix Resolution (pug): 2.0.4
⛑️ Automatic Remediation is available for this issue
⛑️ Automatic Remediation is available for this issue.