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.4Fixed within 3.0.x, affecting earlier releases
Pug allows JavaScript code execution if an application accepts untrusted input
- Affected
- <3.0.3
- Fixed in
- 3.0.3
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.