Intel

AIKIDO-2024-10106

pug-code-gen is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2024-36361 Published May 27, 2024

75

High Risk

This Affects:

JSpug-code-gen
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-code-gen is vulnerable to Remote Code Execution (RCE) in versions 2.0.0 - 3.0.2.

How to fix this

Upgrade the pug-code-gen library to the patch version.