Advisory

GHSA-3965-hpx2-q597

Also known as: CVE-2024-36361

Summary

Pug allows JavaScript code execution if an application accepts untrusted input

Details

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-24 14:45 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

pug-code-gen

npm · All systems

Affected

  • introduced 0, fixed 3.0.3 (semver)

Fixed versions

3.0.3

Fix

pug

npm · All systems

Affected

  • introduced 0, fixed 3.0.3 (semver)

Fixed versions

3.0.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences