CVE-2024-33883 ejs lacks certain pollution protection
Medium 4.0
Published
Updated
Check this codebase for CVE-2024-33883 and fix it if it is affected.
What it is: CVE-2024-33883 is a medium-severity vulnerability in n/a, published on 28 Apr 2024.
Exploitation: There is no known exploitation of CVE-2024-33883 in the wild and no public exploit code.
Affected packages and fixed versions:
- ejs (npm): affected all versions; fixed in 3.1.10
- ejs (npm): affected all versions; fixed in 3.1.10
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/CVE-2024-33883/ (Markdown: https://insights.sbomify.com/CVE-2024-33883/index.md)
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2024-33883?
CVE-2024-33883 is a medium-severity vulnerability in n/a, published on 28 Apr 2024.
Official description
The ejs (aka Embedded JavaScript templates) package before 3.1.10 for Node.js lacks certain pollution protection.
Weakness: CWE-693
Which versions are affected by CVE-2024-33883?
2 open source packages ship an affected version, including ejs.
| Package | Affected | Fixed in |
|---|---|---|
ejs npm | All versions | 3.1.10 |
ejs npm | All versions | 3.1.10 |
How do I fix CVE-2024-33883?
Upgrade ejs to 3.1.10 or later.
Is CVE-2024-33883 being exploited?
There is no known exploitation of CVE-2024-33883 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as CLSA-2026-1780534260, DEBIAN-CVE-2024-33883, GHSA-ghr5-ch3p-vcr6, ROOT-APP-NPM-CVE-2024-33883, UBUNTU-CVE-2024-33883.