cve.bz

CVE-2024-36361

6.8 mediumEPSS 0.5%

Medium (6.8). EPSS 0.5% chance of exploitation in the next 30 days. Fixed in pug-code-gen 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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
0.5% chance of exploitation in the next 30 days; higher than 42% of CVEs (scores of 2026-10-31)
CWE
CWE-94
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3965-hpx2-q597npmpug-code-gen<3.0.33.0.3
GHSA-3965-hpx2-q597npmpug<3.0.33.0.3

References

Check your stackJSON