Read the docs
TI-2024-24153 Aliases CVE-2024-36361GHSA-3965-hpx2-q597

Pug through 3.0.2 allows JavaScript code execution if an application accepts untrusted…

Priority HIGH 65CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00491 42nd percentileScored 2026-11-07
Fix Fixed pug-code-gen (npm): 3.0.3pug (npm): 3.0.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—pug-code-gen (npm)before 3.0.33.0.3Patch availableGHSA-3965-hpx2-q597
—pug (npm)before 3.0.33.0.3Patch availableGHSA-3965-hpx2-q597
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • pug-code-gen (npm) Vendor— Affected before 3.0.3 Fixed in 3.0.3 Patch available GHSA-3965-hpx2-q597
  • pug (npm) Vendor— Affected before 3.0.3 Fixed in 3.0.3 Patch available GHSA-3965-hpx2-q597

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:pugjs:pug:0.0.2:*:*:*:*:node.js:*:*0.0.2—pugjs
  • cpe:2.3:a:pugjs:pug:0.0.2:*:*:*:*:node.js:*:* Versions 0.0.2 — ·pugjs

Remediation

  • Fix · GHSA-3965-hpx2-q597 pug-code-gen (npm) Fixed in 3.0.3 Advisory →
  • Fix · GHSA-3965-hpx2-q597 pug (npm) Fixed in 3.0.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-36361
  2. 2026-10-03 Alias added: GHSA-3965-hpx2-q597

References

Sources