Code Injection in Pug - CVE-2024-36361

 

Code Injection in Pug - CVE-2024-36361

Published: February 3, 2025 / Updated: February 7, 2025


Vulnerability identifier: #VU103495
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-36361
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pugjs
Affected software:
Pug

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to Pug allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compileFileClient, or compileClientWithDependenciesTracked function. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.


How to mitigate CVE-2024-36361

Install updates from vendor's website.

Sources