Skip to main content
VulnerabilityPublished Updated

CVE-2024-33883: ejs · Protection Mechanism Failure

Affects ejsSource CVE Database V5

0

Not known to be exploited · CVSS 4.0 Medium : upgrade to 3.1.10 when convenient.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
4.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.10
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade ejs to 3.1.10.

Affected software

ProductAffectedFixed in
npmejspkg:npm/ejsOther threatsAffected
  • <3.1.10
Fixed in
  • 3.1.10

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-33883, organizations should upgrade the ejs package to version 3.1.10 or later, where the pollution protection issue has been addressed. In addition to patching, it is advisable to restrict local access to systems running Node.js applications using ejs, minimizing the attack surface. Implement strict access controls and monitoring on servers to detect any unauthorized local activity. Developers should review template usage to avoid passing untrusted input that could exacerbate pollution risks. Employ runtime application self-protection (RASP) or web application firewalls (WAFs) that can detect anomalous behavior related to template rendering. Regularly audit dependencies and maintain an up-to-date inventory of packages to quickly identify and remediate vulnerable components. Finally, incorporate security testing focused on template injection and pollution scenarios during development and deployment cycles.

Description

The ejs (aka Embedded JavaScript templates) package before 3.1.10 for Node.js lacks certain pollution protection.

References

Community reviews

Loading reviews…