You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path to vulnerable library: /node_modules/pug/package.json
Dependency Hierarchy:
❌ pug-2.0.4.tgz (Vulnerable Library)
Found in base branch: master
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.
mend-bolt-for-githubbot
changed the title
CVE-2021-21353 (High) detected in pug-2.0.4.tgz
CVE-2021-21353 (Critical) detected in pug-2.0.4.tgz
Dec 7, 2023
mend-bolt-for-githubbot
changed the title
CVE-2021-21353 (Critical) detected in pug-2.0.4.tgz
CVE-2021-21353 (Medium) detected in pug-2.0.4.tgz
Sep 11, 2024
CVE-2021-21353 - Medium Severity Vulnerability
Vulnerable Library - pug-2.0.4.tgz
A clean, whitespace-sensitive template language for writing HTML
Library home page: https://registry.npmjs.org/pug/-/pug-2.0.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/pug/package.json
Dependency Hierarchy:
Found in base branch: master
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 thepretty
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 (6.8)
Base Score Metrics:
Suggested Fix
Type: Upgrade version
Origin: GHSA-p493-635q-r6gr
Release Date: 2021-03-03
Fix Resolution: 3.0.0-canary-1
Step up your Open Source Security Game with Mend here
The text was updated successfully, but these errors were encountered: