What’s Vulnerable › Vulnerabilities
CVE-2024-36361
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-24 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- pugjs pug: from 0.0.2 through 3.0.2
References
- https://github.com/pugjs/pug/pull/3428
- https://pugjs.org/api/reference.html
- https://github.com/pugjs/pug/pull/3428
- https://pugjs.org/api/reference.html
Get alerted when CVE-2024-36361 or the next vulnerability affects your stack