Prototype Pollution in ejs <3.1.10
A vulnerability in the ejs (Embedded JavaScript templates) package for Node.js, prior to version 3.1.10, allows for prototype pollution due to insufficient protection against object property pollution. This can occur when user-supplied input is not properly sanitized before being used in template rendering, potentially allowing attackers to manipulate object prototypes.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation may allow an attacker to modify the prototype of base objects, leading to denial of service, data tampering, or execution of arbitrary code in certain scenarios, depending on the application context and how ejs is used.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, ensure that user input is strictly validated and sanitized before being passed to ejs templates. Avoid passing untrusted objects or data structures to template rendering functions.
Patch, then assume compromise.
Upgrade the ejs package to version 3.1.10 or later, which includes proper protection against prototype pollution.
1 exploit validated by Mallory's analysis.
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.