pug@2.0.0-alpha3 vulnerabilities

A clean, whitespace-sensitive template language for writing HTML

Direct Vulnerabilities

Known vulnerabilities in the pug package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Remote Code Execution (RCE)

pug is an A clean, whitespace-sensitive template language for writing HTML

Affected versions of this package are vulnerable to Remote Code Execution (RCE). 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.

How to fix Remote Code Execution (RCE)?

Upgrade pug to version 3.0.1 or higher.

<3.0.1