GHSA-3965-hpx2-q597

Pug allows JavaScript code execution if an application accepts untrusted input

En bref

Publiée
Mise à jour
CVE
CVE-2024-36361
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

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.

Paquets affectés

PaquetVersions
npm · pug-code-genintroduced 0, fixed 3.0.3
npm · pugintroduced 0, fixed 3.0.3

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database