Improper Control of Dynamically-Managed Code Resources Affecting ejs package, versions <3.1.10


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.13% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Dynamically-Managed Code Resources vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-EJS-6689533
  • published29 Apr 2024
  • disclosed28 Apr 2024
  • creditUnknown

Introduced: 28 Apr 2024

CVE-2024-33883  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade ejs to version 3.1.10 or higher.

Overview

ejs is a popular JavaScript templating engine.

Affected versions of this package are vulnerable to Improper Control of Dynamically-Managed Code Resources due to the lack of certain pollution protection mechanisms. An attacker can exploit this vulnerability to manipulate object properties that should not be accessible or modifiable.

Note:

Even after updating to the fix version that adds enhanced protection against prototype pollution, it is still possible to override the hasOwnProperty method.

References

CVSS Scores

version 3.1