fix: Remediate CVE-2024-33883 — upgrade ejs to 3.1.10#44
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
fix: Remediate CVE-2024-33883 — upgrade ejs to 3.1.10#44devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Upgrade ejs dependency from 1.0.0 to 3.1.10 to fix template injection vulnerability - Remove deprecated ejs-locals (1.0.2), incompatible with ejs 3.x - Add express-ejs-layouts (^2.5.1) as a maintained replacement for layout support - Update app.js to use express-ejs-layouts middleware instead of ejs-locals engine - Remove ejs-locals-specific layout() calls from view templates (index, edit, admin) Co-Authored-By: Ian Moritz <ian.moritz@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Author
CVE-2024-33883 Remediation SummaryVulnerability: ejs < 3.1.10 is vulnerable to template injection due to insufficient input sanitization. What changed
Why
CI NoteThe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remediates CVE-2024-33883 (HIGH) — ejs versions prior to 3.1.10 are vulnerable to template injection due to insufficient input sanitization. The
ejspackage was pinned at1.0.0.Changes:
ejsupgraded from1.0.0→3.1.10ejs-locals@1.0.2(incompatible with ejs 3.x)express-ejs-layouts@^2.5.1as a maintained drop-in replacement for layout supportlayout.ejsremains unchanged —express-ejs-layoutsuses the same<%- body %>convention. The<% layout('layout') -%>calls (ejs-locals API) were removed fromindex.ejs,edit.ejs, andadmin.ejssinceexpress-ejs-layoutsapplies the layout automatically via middleware.Context: Part of Aviva Canada's Tower 3 Vulnerability Management pipeline. CVE identified by Tenable scanning, classified as off-EBR critical track.
Link to Devin session: https://app.devin.ai/sessions/4e8cce61f4aa43ec8eb5d7b3d1979bbf
Requested by: @iancmoritz
Devin Review