electron / electron/forge

`webpack-dev-server` has a CVE

Open
#4,084 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Pre-flight checklist

- [x] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [x] I have searched the issue tracker for a bug that matches the one I want to file, without success.

### Forge version

7.10.2

### Electron version

39.2.6

### Operating system

macOS 26.1

### Last known working Forge version

_No response_

### Expected behavior

When running an audit, one discovers that `webpack-dev-server` up until version 5.2.0 are vulnerable:

```
Package: webpack-dev-server
Version(s) <=5.2.0
webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser (Severity: moderate)
URL: https://github.com/advisories/GHSA-9jgg-88mc-972h
```

While this is possibly less relevant in most cases, it might be an easy fix to just update `webpack-dev-server`. Link to advisory: https://github.com/advisories/GHSA-9jgg-88mc-972h

### Actual behavior

I don't know if there are any weird inconsistencies when updating the dependency, and unfortunately have little time to test this out myself, that's why I opened this issue rather than proposing a PR outright, which I can't test properly

### Steps to reproduce

run `npm audit` on a `package.json` that includes somewhere a vulnerable version of `webpack-dev-server`.

### Additional information

I couldn't find a `SECURITY` file. Also, since I believe this to be benign and the advisory is already a few months old, I decided that opening a public issue is probably not too critical.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.