-
Notifications
You must be signed in to change notification settings - Fork 13k
chore(deps): bump node version from 22.16.0 to 22.21.1
#37476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 8531fc5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughNode.js version is bumped to 22.21.1 across workflows, Dockerfiles, and package config. A changeset records patch bumps for multiple Rocket.Chat packages; no functional code changes were made. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (18)
.changeset/perfect-trees-rescue.md(1 hunks).github/workflows/ci-deploy-gh-pages.yml(1 hunks).github/workflows/new-release.yml(1 hunks).github/workflows/pr-update-description.yml(1 hunks).github/workflows/publish-release.yml(1 hunks).github/workflows/release-candidate.yml(1 hunks).github/workflows/update-version-durability.yml(1 hunks)apps/meteor/.docker-mongo/Dockerfile(1 hunks)apps/meteor/.docker/Dockerfile.alpine(1 hunks)apps/meteor/.docker/Dockerfile.debian(1 hunks)ee/apps/account-service/Dockerfile(2 hunks)ee/apps/authorization-service/Dockerfile(2 hunks)ee/apps/ddp-streamer/Dockerfile(2 hunks)ee/apps/omnichannel-transcript/Dockerfile(2 hunks)ee/apps/presence-service/Dockerfile(2 hunks)ee/apps/queue-worker/Dockerfile(2 hunks)ee/apps/stream-hub-service/Dockerfile(2 hunks)package.json(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: CodeQL-Build
🔇 Additional comments (19)
.github/workflows/publish-release.yml (1)
24-31: Node.js version update applied consistently.The Setup NodeJS step correctly updates to 22.21.1, aligning with PR objectives for security fixes. No issues in this file.
.github/workflows/pr-update-description.yml (1)
21-28: Node.js version update applied consistently.The Setup NodeJS step correctly updates to 22.21.1. No issues in this file.
.github/workflows/release-candidate.yml (1)
15-22: Node.js version update applied consistently.The Setup NodeJS step correctly updates to 22.21.1. No issues in this file.
.github/workflows/update-version-durability.yml (1)
23-26: Node.js version update applied consistently.The "Use Node.js" step correctly updates to 22.21.1 using the standard GitHub action. No issues in this file.
.github/workflows/ci-deploy-gh-pages.yml (1)
17-23: Node.js version update applied consistently.The Setup NodeJS step correctly updates to 22.21.1. No issues in this file.
ee/apps/queue-worker/Dockerfile (2)
1-1: Node.js base image versions updated consistently to 22.21.1-alpine3.21.Both builder and final stages use the correct updated version. The multi-stage build pattern is appropriate. No issues with these changes.
Also applies to: 105-105
113-116: Verify CVE reference accuracy in the comment.Line 115 references "CVE-2025-9230" for OpenSSL vulnerability, but this CVE identifier does not appear in public advisories. Node.js 22.x bundles OpenSSL 3.5.2, which allows Node.js 22.x to be supported through to the planned End-of-Life date of 2027-04-30 as the previously bundled OpenSSL 3.0.x goes out of support in September 2026. Please verify the correct CVE identifier or provide the CVE details that apply to this OpenSSL upgrade.
.github/workflows/new-release.yml (1)
34-41: Node.js version update applied consistently.The Setup NodeJS step correctly updates to 22.21.1. No issues in this file.
ee/apps/ddp-streamer/Dockerfile (1)
1-1: Straightforward version bump with security fix.The Node.js runtime has been updated consistently across both builder and final stages, with proactive OpenSSL vulnerability remediation included. No concerns identified.
Also applies to: 95-95
apps/meteor/.docker/Dockerfile.debian (1)
5-5: Note: Larger version jump for Debian variant.The Debian-based image is being updated from 22.14.0 to 22.21.1 (versus 22.16.0 → 22.21.1 in Alpine variants). This indicates the Debian Dockerfile was on an older Node version. Verify this delta was intentional and that the Debian variant is tested alongside Alpine variants.
ee/apps/account-service/Dockerfile (1)
1-1: LGTM.Consistent version bump with security fixes applied. Aligns with patterns across other service Dockerfiles.
Also applies to: 92-92
ee/apps/omnichannel-transcript/Dockerfile (1)
1-1: LGTM.Consistent version bump applied symmetrically across builder and runtime stages.
Also applies to: 105-105
package.json (1)
48-48: Engine and runtime pin updated correctly.Both
engines.nodeandvolta.nodehave been synchronized to 22.21.1, ensuring consistent Node version enforcement across npm installs and developer tooling.Also applies to: 59-59
apps/meteor/.docker-mongo/Dockerfile (1)
1-1: Debian variant version bump consistent.Aligns with the broader Debian-to-22.21.1 update observed across docker files. Same 22.14.0 → 22.21.1 delta as in Dockerfile.debian.
ee/apps/authorization-service/Dockerfile (1)
1-1: LGTM.Version bump applied consistently across builder and runtime stages with security hardening.
Also applies to: 89-89
ee/apps/presence-service/Dockerfile (1)
1-1: LGTM.Consistent version bump with security fixes applied uniformly.
Also applies to: 93-93
ee/apps/stream-hub-service/Dockerfile (2)
1-1: LGTM: Builder stage Node.js version updated correctly.The builder stage base image has been updated to node:22.21.1-alpine3.21, which aligns with the security advisory requirements. The Alpine version (3.21) is consistent with the runtime stage, and the change is syntactically correct.
90-90: LGTM: Runtime stage Node.js version updated and OpenSSL security patch applied.The runtime stage FROM instruction has been correctly updated to node:22.21.1-alpine3.21. The subsequent OpenSSL upgrade on lines 99-101 addresses CVE-2025-9230, which is properly documented. This two-stage approach (version bump + explicit OpenSSL patching) provides defense-in-depth for security.
apps/meteor/.docker/Dockerfile.alpine (1)
1-1: LGTM: Node.js version updated; verify Alpine version alignment across repository.The Node.js version has been correctly updated to 22.21.1. However, note that this file uses alpine3.20, while the stream-hub-service Dockerfile (ee/apps/stream-hub-service/Dockerfile) uses alpine3.21. Both are valid and likely serve intentional purposes, but you may want to verify consistency with any other Dockerfiles or deployment requirements, especially since node:22-alpine3.21 and node:22-alpine3.22 are the currently recommended Alpine tags for Node.js 22. The OpenSSL security patch on lines 21-23 is properly documented for CVE-2025-9230.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/meteor/ee/server/services/Dockerfile (1)
5-6: Critical:apt-getis incompatible with Alpine Linux.Line 5-6 uses
apt-getpackage manager, but the base imagenode:22.21.1-alpine3.21is Alpine Linux, which usesapkinstead. This will cause the Docker build to fail. Replace with Alpine-compatible commands.RUN apt-get update \ - && apt-get install -y build-essential git + && apk add --no-cache build-base git
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
apps/meteor/ee/server/services/Dockerfile(2 hunks)
| @@ -1,4 +1,4 @@ | |||
| FROM node:22.16.0-alpine3.21 as build | |||
| FROM node:22.21.1-alpine3.21 as build | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify Node.js image availability and security fixes.
The version bump from 22.16.0 to 22.21.1 is applied consistently across both build and runtime stages. However, confirm that the node:22.21.1-alpine3.21 tag exists and contains the security patches for the referenced CVEs (CVE-2025-27210 and CVE-2025-9230).
Also applies to: 31-31
🌐 Web query:
Does node:22.21.1-alpine3.21 Docker image tag exist and what security updates does it include?
💡 Result:
Short answer: No — I can find a published node:22.21.1-alpine3.22 tag, but not node:22.21.1-alpine3.21. [1][2]
What security fixes are included (for the closest images):
- Node.js 22.21.1 (the 22.21.1 images) contains the January 21, 2025 Node.js security fixes (worker/diagnostics and dependency fixes including undici updates). See the Node.js security release notes. [3]
- Alpine 3.21 (the Alpine 3.21 series) includes maintenance/security updates (Alpine 3.21 release notes mention multiple fixes; Alpine also released 3.21.1 with additional fixes). Notably many projects upgraded to 3.21 to address OpenSSL/CVE issues (e.g. CVE-2024-9143 was a motivation to move to 3.21). [4][5]
References
- Snyk / image listing for node:22.21.1-alpine3.22 (shows 22.21.1-alpine3.22 exists).
- Docker mirror listings showing node:22-alpine3.21 (but no node:22.21.1-alpine3.21 tag found).
- Node.js security release (Jan 21, 2025) — details of fixes and dependency updates (undici, CVEs).
- Alpine 3.21 release notes.
- Alpine 3.21.1 release notes / discussions about moving images to Alpine 3.21 to address OpenSSL CVEs.
If you want, I can (a) confirm again directly against Docker Hub and paste the exact tag list and digests, or (b) show the specific CVE IDs fixed in the Node 22.21.1 and Alpine 3.21 releases. Which would you prefer?
The specified Docker image tag does not exist and will cause build failures.
The node:22.21.1-alpine3.21 tag is not published; only node:22.21.1-alpine3.22 exists. Update both the build stage (line 1) and runtime stage (line 31) to use node:22.21.1-alpine3.22, which is the published image for this Node.js version.
Node.js 22.21.1 includes January 21, 2025 security fixes including worker/diagnostics and dependency updates (undici). However, the Alpine version needs correction for the image to be available.
Also applies to: 31-31
🤖 Prompt for AI Agents
In apps/meteor/ee/server/services/Dockerfile around lines 1 and 31, the base
image tag used (node:22.21.1-alpine3.21) does not exist and will fail builds;
update both the build stage (line 1) and the runtime stage (line 31) to use the
published tag node:22.21.1-alpine3.22 instead, ensuring both FROM lines
reference the same corrected image version.
Co-authored-by: Guilherme Gazzo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.changeset/perfect-trees-rescue.md (1)
13-13: Consider enhancing the changelog message with security context.The changeset message is accurate but minimal. Since the PR objectives explicitly reference two security advisories (CVE-2025-27210 and CVE-2025-9230 for OpenSSL), consider making this context visible in the changelog to help users understand the urgency of this update.
- Bump Node version to 22.21.1 + Bump Node version to 22.21.1 (fixes CVE-2025-27210, CVE-2025-9230 - OpenSSL)This gives users and maintainers immediate visibility into why this version bump matters.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
.changeset/perfect-trees-rescue.md(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: 📦 Build Packages
- GitHub Check: CodeQL-Build
- GitHub Check: CodeQL-Build
🔇 Additional comments (1)
.changeset/perfect-trees-rescue.md (1)
13-13: ✅ Version number is now correct.The changeset message has been properly corrected from the previous review: it now accurately states "Bump Node version to 22.21.1" (not 20.21.1), matching the actual version bumped across all workflows, Dockerfiles, and configuration files in this PR.
Proposed changes (including videos or screenshots)
CVE-2025-27210
CVE-2025-9230
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit