Skip to content

[Snyk] Security upgrade node from 20-alpine to 24.0.0-alpine#13396

Merged
eahefnawy merged 2 commits intomainfrom
snyk-fix-8861241f84331cae82d9de71a5380c6f
Mar 8, 2026
Merged

[Snyk] Security upgrade node from 20-alpine to 24.0.0-alpine#13396
eahefnawy merged 2 commits intomainfrom
snyk-fix-8861241f84331cae82d9de71a5380c6f

Conversation

@Mmarzex
Copy link
Copy Markdown
Contributor

@Mmarzex Mmarzex commented Mar 8, 2026

snyk-top-banner

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/Dockerfile

We 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:

Issue Score
critical severity Out-of-bounds Write
SNYK-ALPINE323-ZLIB-15435528
  263  
medium severity Improper Validation of Specified Quantity in Input
SNYK-ALPINE323-ZLIB-15435529
  104  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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-proxy dev container.

Overview
Upgrades the serverless-dev-mode-proxy container base image from node:20-alpine to node: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.

@Mmarzex
Copy link
Copy Markdown
Contributor Author

Mmarzex commented Mar 8, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 8, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1420cecf-5ac9-42e6-8170-bd82a6a722ae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-8861241f84331cae82d9de71a5380c6f

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: Eslam λ Hefnawy <eslam@serverless.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

@eahefnawy eahefnawy merged commit e7e5e8f into main Mar 8, 2026
14 checks passed
@eahefnawy eahefnawy deleted the snyk-fix-8861241f84331cae82d9de71a5380c6f branch March 8, 2026 22:46
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants