CVE-2024-36361
Medium
Description
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.
SeverityMedium
CVSS6.8
Exploit probability—
ProductPug-code-gen
PublishedMay 24, 2024
First seenMay 24, 2024
Weakness typeCWE-94Code injection
How to fix
Update
- pug-code-gen3.0.3 or later
- pug3.0.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pug-code-gennpm | v < 3.0.3 | 3.0.3 |
| pugnpm | v < 3.0.3 | 3.0.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.