[Snyk] Security upgrade node from 20-alpine to 24.0.0-alpine#13396
[Snyk] Security upgrade node from 20-alpine to 24.0.0-alpine#13396
Conversation
…roxy/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE323-ZLIB-15435528 - https://snyk.io/vuln/SNYK-ALPINE323-ZLIB-15435529
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
packages/engine/src/lib/devMode/containers/serverless-dev-mode-proxy/Dockerfile
Outdated
Show resolved
Hide resolved
Co-authored-by: Eslam λ Hefnawy <eslam@serverless.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| @@ -1,4 +1,4 @@ | |||
| FROM node:20-alpine | |||
| FROM node:24-alpine | |||
There was a problem hiding this comment.
Floating image tag doesn't match Snyk's pinned recommendation
Low Severity
The PR title and Snyk metadata specify upgrading to node:24.0.0-alpine (a pinned version that Snyk verified has only 15 known vulnerabilities), but the actual change uses node:24-alpine, a floating tag that resolves to whichever 24.x release is latest at build time. This means the security posture verified by Snyk's scan may not match what gets built, and builds are not reproducible.


Snyk has created this PR to fix 2 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):
packages/engine/src/lib/devMode/containers/serverless-dev-mode-proxy/DockerfileWe recommend upgrading to
node:24.0.0-alpine, as this image has only 15 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.Vulnerabilities that will be fixed with an upgrade:
SNYK-ALPINE323-ZLIB-15435528
SNYK-ALPINE323-ZLIB-15435529
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Out-of-bounds Write
Note
Medium Risk
Bumps the Docker base image from Node 20 to Node 24, which can introduce runtime incompatibilities or native dependency issues, though the change is isolated to the
serverless-dev-mode-proxydev container.Overview
Upgrades the
serverless-dev-mode-proxycontainer base image fromnode:20-alpinetonode:24-alpine(security-driven), keeping the rest of the Docker build steps unchanged.Written by Cursor Bugbot for commit c4cc273. This will update automatically on new commits. Configure here.