CVE-2024-33883: 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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
Patch, then assume compromise.
Upgrade the ejs package to version 3.1.10 or later, which includes proper protection against prototype pollution.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2024-33883 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-33883 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-33883?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-33883, the earliest disclosed Jun 25, 2024.
- Is there a patch for CVE-2024-33883?
- Upgrade the ejs package to version 3.1.10 or later, which includes proper protection against prototype pollution.
- How severe is CVE-2024-33883?
- CVE-2024-33883 has a CVSS v3.1 score of 4.0 (Medium) and an EPSS score of 0.61% (50th percentile) as of Oct 16, 2026.
Recent activity
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.