Intel

AIKIDO-2024-10105

pug is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 27, 2024

75

High Risk

This Affects:

JSpug
2.0.0 - 3.0.2
Fixed in 3.0.3
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to Remote Code Execution (RCE). TemplateName and globals JavaScript identifiers are not validated to prevent possible Remote Code Execution (RCE) if untrusted user input is passed to the compilation options.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pug is vulnerable to Remote Code Execution (RCE) in versions 2.0.0 - 3.0.2.

How to fix this

Upgrade the pug library to the patch version.