Skip to content

[Snyk] Security upgrade webpack-dev-server from 4.15.2 to 5.2.4#9

Open
Eric-Guo wants to merge 2 commits into
mainfrom
snyk-fix-ef2eb873420d095b3af8df142d444309
Open

[Snyk] Security upgrade webpack-dev-server from 4.15.2 to 5.2.4#9
Eric-Guo wants to merge 2 commits into
mainfrom
snyk-fix-ef2eb873420d095b3af8df142d444309

Conversation

@Eric-Guo

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
medium severity Exposed Dangerous Method or Function
SNYK-JS-WEBPACKDEVSERVER-16642067

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Copilot AI review requested due to automatic review settings May 14, 2026 05:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to remediate a webpack-dev-server vulnerability by upgrading the package version used by the Rails/Shakapacker frontend toolchain.

Changes:

  • Updates webpack-dev-server in package.json from ^4.15.2 to ^5.2.4.
  • Includes an unrelated Gemfile.lock patch update for devise.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates the webpack-dev-server dependency constraint.
Gemfile.lock Updates the locked devise patch version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"webpack-assets-manifest": "^5.2.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^4.15.2",
"webpack-dev-server": "^5.2.4",

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 792269e3da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"webpack-assets-manifest": "^5.2.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^4.15.2",
"webpack-dev-server": "^5.2.4",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Regenerate pnpm lockfile for this dependency bump

Updating webpack-dev-server in package.json without updating pnpm-lock.yaml leaves the lockfile pinned to webpack-dev-server@4.15.2 (root importer still has specifier: ^4.15.2), so this change is not installable in CI because .github/workflows/rubyonrails.yml runs pnpm install --frozen-lockfile. In that environment the install step fails before tests, and the security upgrade is not actually applied.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants