# CVE-2024-39698: Code Signing Bypass on Windows in electron-updater \< 6.3.0-alpha.6

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-154
- **Aliases:** GHSA-9jxc-qjr9-vjxq
- **Published:** 2024-07-09T17:48:21.000Z
- **Modified:** 2026-09-10T03:50:16.404Z

## Who should check

- Projects that depend on npm package electron-updater (\< 6.3.0-alpha.6)
- Anyone running electron-userland electron-builder \< 6.3.0-alpha.6

## Description

electron-updater allows for automatic updates for Electron apps. The file \`packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts\` implements the signature validation routine for Electron applications on Windows. Because of the surrounding shell, a first pass by \`cmd.exe\` expands any environment variable found in command-line above. This creates a situation where \`verifySignature()\` can be tricked into validating the certificate of a different file than the one that was just downloaded. If the step is successful, the malicious update will be executed even if its signature is invalid. This attack assumes a compromised update manifest (server compromise, Man-in-the-Middle attack if fetched over HTTP, Cross-Site Scripting to point the application to a malicious updater server, etc.). The patch is available starting from 6.3.0-alpha.6.

## Affected and fixed versions

- npm `electron-updater`: affected \< 6.3.0-alpha.6; fixed 6.3.0-alpha.6 (osv)
- electron-userland electron-builder: \< 6.3.0-alpha.6 (cvelist)

## Mitigation

- Upgrade electron-updater to 6.3.0-alpha.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39698. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39698.md
Affected: electron-updater < 6.3.0-alpha.6
Fixed in: 6.3.0-alpha.6

Steps:
1. Search this machine and project for electron-updater (npm), electron-userland electron-builder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39698 being exploited?

There is no confirmed exploitation: CVE-2024-39698 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-39698?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-39698?

electron-updater \< 6.3.0-alpha.6.

### Is there a fix for CVE-2024-39698?

Yes. Fixed in 6.3.0-alpha.6. Upgrade electron-updater to 6.3.0-alpha.6 or later.

### How do I check if I'm affected by CVE-2024-39698?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-39698>
- patch: <https://github.com/electron-userland/electron-builder/pull/8295>
- patch: <https://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f>
- other: <https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41>
- other: <https://github.com/electron-userland/electron-builder>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39698>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9jxc-qjr9-vjxq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-39698> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39698>
