Medium severity4.0NVD Advisory· Published Apr 28, 2024· Updated Apr 15, 2026
CVE-2024-33883
CVE-2024-33883
Description
The ejs (aka Embedded JavaScript templates) package before 3.1.10 for Node.js lacks certain pollution protection.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ejsnpm | < 3.1.10 | 3.1.10 |
Patches
22 files changed · +12 −2
lib/ejs.js+3 −2 modified@@ -506,8 +506,8 @@ exports.clearCache = function () { exports.cache.reset(); }; -function Template(text, opts) { - opts = opts || utils.createNullProtoObjWherePossible(); +function Template(text, optsParam) { + var opts = utils.hasOwnOnlyObject(optsParam); var options = utils.createNullProtoObjWherePossible(); this.templateText = text; /** @type {string | null} */ @@ -949,3 +949,4 @@ exports.name = _NAME; if (typeof window != 'undefined') { window.ejs = exports; } +
lib/utils.js+9 −0 modified@@ -238,4 +238,13 @@ exports.createNullProtoObjWherePossible = (function () { }; })(); +exports.hasOwnOnlyObject = function (obj) { + var o = exports.createNullProtoObjWherePossible(); + for (var p in obj) { + if (hasOwn(obj, p)) { + o[p] = obj[p]; + } + } + return o; +};
d3f807dea9cehttps://github.com/mde/ejsvia osv
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-ghr5-ch3p-vcr6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-33883ghsaADVISORY
- github.com/mde/ejs/commit/e469741dca7df2eb400199e1cdb74621e3f89aa5nvdWEB
- github.com/mde/ejs/compare/v3.1.9...v3.1.10nvdWEB
- security.netapp.com/advisory/ntap-20240605-0003ghsaWEB
- security.netapp.com/advisory/ntap-20240605-0003/nvd
News mentions
0No linked articles in our index yet.