Repository navigation
fix: Pin Node.js to v22.23.4 and update body-parser and vite - #1394
Open
cybele-ripple wants to merge 4 commits into
Open
cybele-ripple wants to merge 4 commits into
cybele-ripple wants to merge 4 commits into
Conversation
Pins .nvmrc to v22.23.4 for CVE-2026-111497, raises body-parser to ^1.20.9 for CVE-2026-111181, and raises vite to ^7.3.7 for CVE-2026-112942. The existing caret ranges already permitted the patched versions; the floors are raised so a future lockfile regeneration cannot resolve back below them.
Patel-Raj11
reviewed
Nov 20, 2026
| "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz", | ||
| "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==", | ||
| "version": "1.20.9", | ||
| "resolved": "https://artifactory.ops.ripple.com/artifactory/api/npm/ripple-npm/body-parser/-/body-parser-1.20.9.tgz", |
Contributor
There was a problem hiding this comment.
CI is failing due to internal NPM registry
kuan121
reviewed
Nov 25, 2026
| @@ -1 +1 @@ | |||
| v22.14.0 | |||
| v22.23.4 | |||
Contributor
There was a problem hiding this comment.
I have the same comment and question as in [this PR discussion]
Contributor
Author
There was a problem hiding this comment.
Based on that discussion, reverted back to v22 here
Contributor
There was a problem hiding this comment.
@cybele-ripple Can you keep the PR title and description up to date?
Only affects contributors running nvm install locally, since v22 already resolves to the latest 22.x patch. Matches the decision made on XRPLF/xrpl.js#3592.
| @@ -1 +1 @@ | |||
| v22.14.0 | |||
| v22 | |||
There was a problem hiding this comment.
🔴 High — .nvmrc pinned to floating "v22" alias, not the exact v22.23.4 described in the PR
.nvmrc uses floating v22 instead of exact pin v22.23.4, risking the Brotli RCE. Use explicit version:
Suggested change
| v22 | |
| v22.23.4 |
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.
High Level Overview of Change
Addresses three high-severity advisories in a single change:
.nvmrcpinned fromv22.14.0tov22.23.4(CVE-2026-111497)body-parserraised from^1.20.6to^1.20.9(CVE-2026-111181)viteraised from^7.3.6to^7.3.7(CVE-2026-112942)package-lock.jsonregenerated so the patched versions are the resolved onesContext of Change
Node.js — CVE-2026-111497.
.nvmrcpinnedv22.14.0, which is affected by a Brotli decoder out-of-bounds write (remote code execution).v22.23.4is the first 22.x release carrying the fix. It is kept as an explicit pin rather than a floating alias such asltsorlatest, per the advisory guidance. The CI workflows resolveNODE_VERSION: 22.xat run time and therefore already install a patched release, so no workflow change is needed.body-parser — CVE-2026-111181. The lockfile resolved 1.20.8, which is affected by an uncaught exception advisory rated high severity. Updated to 1.20.9. This is the highest-priority item of the three; see the advisory for details.
vite — CVE-2026-112942. The lockfile resolved 7.3.6, which bundles a
launch-editoraffected by a command injection advisory. The affected code path belongs to the dev server, which production builds do not run.Both existing caret ranges already permitted the patched versions — the lockfile was simply pinned to older resolutions. The floors in
package.jsonare raised alongside the lockfile update so a future regeneration cannot resolve back below the patched releases.Type of Change
Codebase Modernization
Not applicable — this change touches only dependency metadata and the Node version file. No source files were modified.
Before / After
Resolved versions in
package-lock.json:body-parserviteviteresolves to 7.3.8 rather than exactly 7.3.7 because the caret range picks up the newest patch; both are past the fixed version. The nestedexpress/node_modules/body-parserat 2.3.0 was never in the affected range and is unchanged.Test Plan
Run under Node 22 (
enginesrequires>=22.0.0 <23):npm install— reportedchanged 2 packages, confirming the update is limited to the two dependencies.npm run build— succeeded, 1,783 modules transformed. The chunk-size warning is pre-existing and unrelated.npm run test:ci— 314 suites, 1,900 tests, all passing.npm run lint:ci— eslint and stylelint clean.Resolved versions were then verified directly in
package-lock.jsonto confirm no other copy of either package remains in the affected range.🤖 Generated with Claude Code