Is pug 3.0 vulnerable?

npm · 5 releases from 3.0.0 to 3.0.4 · latest pug is 3.0.4 · checked 2 Nov 2026

No known advisories in the last release

pug 3.0.4, the last 3.0 release, has no known advisories. 2 advisories affect earlier 3.0.x releases, so update to 3.0.4.

Update within 3.0:npm install pug@3.0.4

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Fixed within 3.0.x, affecting earlier releases

  • MediumCVE-2024-36361GHSA-3965-hpx2-q59724 May 2024

    Pug allows JavaScript code execution if an application accepts untrusted input

    Affected
    <3.0.3
    Fixed in
    3.0.3
  • MediumCVE-2021-21353GHSA-p493-635q-r6gr3 Mar 2021

    Remote code execution via the `pretty` option.

    Affected
    <3.0.1
    Fixed in
    3.0.1

Which of your client projects are still on pug 3.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact pug version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other pug versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.