GHSA-6r2x-8pq8-9489
Electron vulnerable to Heap Buffer Overflow in NativeImage
Quick fix
GHSA-6r2x-8pq8-9489 — electron: upgrade to the fixed version with the command below.
npm install electron@28.3.2Details
### Impact The `nativeImage.createFromPath()` and `nativeImage.createFromBuffer()` functions call a function downstream that is vulnerable to a heap buffer overflow. An Electron program that uses either of the affected functions is vulnerable to a buffer overflow if an attacker is in control of the image's height, width, and contents.
### Workaround There are no app-side workarounds for this issue. You must update your Electron version to be protected.
### Patches
- `v28.3.2` - `v29.3.3` - `v30.0.3`
### For More Information
If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org).
Are you affected?
Enter the version of the package you're using.
Affected packages
References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/electron"]}'