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

How to fix

Update
  • pug-code-gen3.0.3 or later
  • pug3.0.3 or later

Affected products

ProductAffected versionsFixed in
pug-code-gennpmv < 3.0.33.0.3
pugnpmv < 3.0.33.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.