Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
webpack

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

react-scripts/ webpack-dev-server#19599

Unanswered
hilalevx asked this question inQ&A
Jun 10, 2025· 4 comments· 15 replies
Discussion options

I'm using react-scripts@5.0.1, which is locked towebpack-dev-server@4.x.
A vulnerability was found:CVE-2025-30360
While webpack5.2.1 fixes the CVE (using override), the upgrade doesn't let me run the app. I get this error on npm start:
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
options has an unknown property 'onAfterSetupMiddleware'. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, ipc?, liveReload?, onListening?, open?, port?, proxy?, server?, app?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }

any solutions?

You must be logged in to vote

Replies: 4 comments 15 replies

Comment options

Unfortunatelyreact-scripts is not supported webpack-dev-server@5, we are preparing security fixes for v4

You must be logged in to vote
10 replies
@pakkeer12
Comment options

@alexander-akait, any update ?

@vakulinina
Comment options

@alexander-akait bump and thanks in advance

@haicaumuoi
Comment options

@alexander-akait bump and thanks in advance

@mikeCapozziICF
Comment options

@alexander-akait any update? Unfortunately we are unable to move away from react-scripts at this time and need to be able to build locally. I believe@Wajih-Ul-Hasan said he had a PR for this already. Are security fixes still on the table for version 4? Thank you!

@malcomio
Comment options

seewebpack/webpack-dev-server#5515 andwebpack/webpack-dev-server#5514

Comment options

@alexander-akait can you provide the any alternative to resolve this issue we need to fix it for our client by the end of the next Monday.

You must be logged in to vote
3 replies
@alexander-akait
Comment options

You can send a PR with backporting fixes to v4, I am planning to do it, but can't find time right now

@Wajih-Ul-Hasan
Comment options

@alexander-akait PR created with backporting fixes to v4.

@mikeCapozziICF
Comment options

Thanks@Wajih-Ul-Hasan !@alexander-akait , it this PR being considered for a potential version 4 update? The problem we have, is we cannot override to webpack-dev-server 5.2.2 because of the config-override changes in format that react-scripts uses. It causes our build to fail. The vulnerability, while I realize is dev env only, is something we really want to get cleaned up for our client. Thanks so much for discussing this!

Comment options

@alexander-akait I simply override "webpack-dev-server" to version "^5.2.2", and it fixed my issue. Since webpack-dev-server is only used for local development, and production environments serve only static files, this override does not affect the app’s behavior in production — at least as far as I understand it.

You must be logged in to vote
2 replies
@alexander-akait
Comment options

Yeah, webpack-dev-server is only for development env

@DannyMeister
Comment options

But it breaks the ability to run the dev server for the developers local environments. Is there a link for us to track v4 progress?

Comment options

I patched it manually for my own repo:facebook/create-react-app#17095 (comment) if yall need an alternative@DannyMeister@mikeCapozziICF

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
13 participants
@hilalevx@malcomio@causztic@alexander-akait@DannyMeister@vakulinina@pakkeer12@karuneshT@chris-hook@Wajih-Ul-Hasan@haicaumuoi@dongnguyen-au@mikeCapozziICF

[8]ページ先頭

©2009-2025 Movatter.jp