CVE-2025-66478 on nextjs 14.* #86876
Replies: 7 comments 10 replies
-
|
It looks like you’re getting hit by the same RCE payload scans that are going around right now, even though 14.2 is not in the officially affected range. The Next.js security advisory says the RSC exploit affects:
So 14.2 shouldn’t be vulnerable to the exploit itself. The A few things you can do:
So in short: your version is not actually vulnerable, but the exploit traffic can still cause crashes if bad inputs hit brittle parts of the runtime. Hardening the edge and tightening error handling usually stops the restarts. |
Beta Was this translation helpful? Give feedback.
-
|
On my VPS server I have my Next.js 15.3 apps, and yesterday I noticed that someone from Ukraine was mining cryptocurrencies and also managed to access my SSH. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ibrahimpelumi6142 . I put in your suggestion to do: Deployed recently but no restarts since I got it in. Provisionally looking good so far. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
|
I also suddenly encountered the following error: Error: Unexpected end of form at e.exports._final (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:457) at callFinal (node:internal/streams/writable:698:12) at prefinish (node:internal/streams/writable:710:7)Error: Failed to find Server Action "x". This request might be from an older or newer deployment. Original error: Cannot read properties of undefined (reading 'workers')
at rT (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:1766)It also reports an error in app-page.runtime.prod.js. Could this be the same issue as the one mentioned above? |
Beta Was this translation helpful? Give feedback.
-
|
Same issue: Nextjs 14.2.33 Here's an error before crash with no pm2 restart: unhandledRejection TypeError: Cannot read properties of null (reading 'digest') at /srv/.../node_modules/next/dist/compiled/next-server/webpack:/next/dist/esm/server/app-render/create-error-handler.js:22:18 at AsyncLocalStorage.run (node:async_hooks:338:14) at N (/srv/.../node_modules/next/dist/compiled/next-server/webpack:/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:52:119) at /srv/.../node_modules/next/dist/compiled/next-server/webpack:/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:36:468 at processTicksAndRejections (node:internal/process/task_queues:95:5) Can't reproduce this error on my local dev machine, server crashes randomly within 30 minutes of start. All started 3-5 days ago and affected all the projects that use payload v2. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, @mattkauffman23 and @vans37 The only stable fix I found is downgrading Next.js: After downgrading to 14.1.4, the error disappears completely. It seems 14.2.x → 15.1.x have regressions in hashing/RSC behavior on Linux servers. |
Beta Was this translation helpful? Give feedback.
-
|
Err, ok let's actually try to fix this... So, if I tried some funny payload in v14.2, locally, I should expect Node.js to terminate the process on account of an unhandled rejection? right? https://nodejs.org/docs/latest-v18.x/api/cli.html#--unhandled-rejectionsmode What Node.js versions are we talking about here? and could I get a exact Next.js version too? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
One of my apps is running version 14.2 which isn't listed as being vulnerable. Overnight we started receiving requests that I believe are attempts at this exploit. (Not sharing payload but they look like RCE attempts). I don't believe they're successful but the errors they're triggering are restarting our servers. Any recommendations on hardening older nextjs versions?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions