Skip to content

Commit 3acff76

Browse files
Fix CVE-2025-55182 - React Server Components RCE Vulnerability (#2175)
### Summary Fixes the **CVE-2025-55182 - React Server Components RCE Vulnerability** by using `react-on-rails-rsc` package that patched that vulnerability and upgrading `react` and `react-dom` packages to `v19.0.1` which mitigated the vulnerability <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated React and React-DOM to 19.0.1. * Updated react-on-rails-rsc to 19.0.3 (dev and peer dependencies). * **Security** * Added mitigation guidance for CVE-2025-55182 recommending updating react, react-dom, and react-on-rails-rsc. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 0a297b7 commit 3acff76

File tree

4 files changed

+22
-41
lines changed

4 files changed

+22
-41
lines changed

packages/react-on-rails-pro/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"peerDependencies": {
6161
"react": ">= 16",
6262
"react-dom": ">= 16",
63-
"react-on-rails-rsc": "19.0.2"
63+
"react-on-rails-rsc": "19.0.3"
6464
},
6565
"peerDependenciesMeta": {
6666
"react-on-rails-rsc": {
@@ -78,8 +78,8 @@
7878
"devDependencies": {
7979
"@types/mock-fs": "^4.13.4",
8080
"mock-fs": "^5.5.0",
81-
"react": "19.0.0",
82-
"react-dom": "19.0.0",
83-
"react-on-rails-rsc": "19.0.2"
81+
"react": "^19.0.1",
82+
"react-dom": "^19.0.1",
83+
"react-on-rails-rsc": "^19.0.3"
8484
}
8585
}

pnpm-lock.yaml

Lines changed: 13 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react_on_rails_pro/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ _Add changes in master not yet tagged._
4848

4949
### Fixed
5050

51+
- **SECURITY: CVE-2025-55182 - React Server Components RCE Vulnerability**: by updating `react-on-rails-rsc` peer dependency to `v19.0.3` which mitigates that vulnerability. Also, users should update `react` and `react-dom` package versions to `v19.0.1` to ensure complete mitigation. [PR 2175](https://github.com/shakacode/react_on_rails/pull/2175) by [AbanoubGhadban](https://github.com/AbanoubGhadban).
52+
5153
- Fixed compatibility issue with httpx 1.6.x by explicitly requiring http-2 >= 1.1.1. [PR 2141](https://github.com/shakacode/react_on_rails/pull/2141) by [AbanoubGhadban](https://github.com/AbanoubGhadban).
5254

5355
- **Node Renderer Worker Restart**: Fixed "descriptor closed" error that occurred when the node renderer restarts while handling an in-progress request (especially streaming requests). Workers now perform graceful shutdowns: they disconnect from the cluster to stop receiving new requests, wait for active requests to complete, then shut down cleanly. A configurable `gracefulWorkerRestartTimeout` ensures workers are forcibly killed if they don't shut down in time. [PR 1970](https://github.com/shakacode/react_on_rails/pull/1970) by [AbanoubGhadban](https://github.com/AbanoubGhadban).

react_on_rails_pro/spec/dummy/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
"postcss": "^8.4.31",
4747
"postcss-loader": "^7.1.0",
4848
"prop-types": "^15.7.2",
49-
"react": "19.0.0",
50-
"react-dom": "19.0.0",
49+
"react": "^19.0.1",
50+
"react-dom": "^19.0.1",
5151
"react-error-boundary": "^4.1.2",
5252
"react-helmet": "^6.0.0-beta.2",
5353
"react-on-rails-pro": "link:.yalc/react-on-rails-pro",
5454
"react-on-rails-pro-node-renderer": "link:.yalc/react-on-rails-pro-node-renderer",
55-
"react-on-rails-rsc": "^19.0.2",
55+
"react-on-rails-rsc": "^19.0.3",
5656
"react-proptypes": "^1.0.0",
5757
"react-redux": "^9.2.0",
5858
"react-refresh": "^0.11.0",

0 commit comments

Comments
 (0)