Security mailing lists by PureSourceCode

CVE-2024-36361

MEDIUM 6.8CVSS 3.1

Pug allows JavaScript code execution if an application accepts untrusted input

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.

Published
24 May 2024
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Deferred
Weakness
CWE-94
Also known as
GHSA-3965-hpx2-q597
Sources
NVDJSONOSV GHSA-3965-hpx2-q597JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm pug-code-gen < 3.0.3 3.0.3
OSV npm pug < 3.0.3 3.0.3

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 24 May 2024)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.