NetSight
medium6.8

CVE-2024-36361

Pug allows JavaScript code execution if an application accepts untrusted input

Impact

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 packages

EcosystemPackageAffectedFixed in
npmpug<= 3.0.23.0.3
npmpug-code-gen<= 3.0.23.0.3

Affected products

ProductAffected versions
Pug
through 3.0.2

Versions were read from the advisory text. No structured product data has been published for this record yet.

Weakness classification

References