| Package | Affected versions | Patched versions |
|---|---|---|
| pug | < 3.0.3 | 3.0.3 |
| pug-code-gen | < 3.0.3 | 3.0.3 |
Pug through 3.0.2 allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compileFileClient, or compileClientWithDependenciesTracked function. NOTE: these functions are for compiling Pug templates into JavaScript, and there would typically be no reason to allow untrusted callers.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free