{"answers":{"affected":"2 open source packages ship an affected version, including electron-updater. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39698 exists.","fix":"Upgrade electron-updater to 6.3.0-alpha.6 or later.","what":"CVE-2024-39698 is a high-severity vulnerability in electron-userland electron-builder, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-39698 and fix it if it is affected.\n\nWhat it is: CVE-2024-39698 is a high-severity vulnerability in electron-userland electron-builder, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39698 exists.\n\nAffected packages and fixed versions:\n- electron-updater (npm): affected all versions; fixed in 6.3.0-alpha.6\n- electron-updater (npm): affected all versions; fixed in 6.3.0-alpha.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-39698/ (Markdown: https://insights.sbomify.com/CVE-2024-39698/index.md)","id":"CVE-2024-39698","markdown":"https://insights.sbomify.com/CVE-2024-39698/index.md","name":"CVE-2024-39698","record":{"aliases":["GHSA-9jxc-qjr9-vjxq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Electron updater library","requires_auth":"none","summary":"Attackers can bypass Windows code signature verification in electron-updater to execute malicious updates if the update manifest is compromised.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"electron-builder","vendor":"electron"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"},{"id":"CWE-154","name":"Improper Neutralization of Variable Name Delimiters"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Code Signing Bypass on Windows in electron-updater \u003c 6.3.0-alpha.6","id":"CVE-2024-39698","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Directus has a Blind SSRF On File Import","id":"CVE-2024-39699"},"packages":[{"ecosystem":"npm","fixed":["6.3.0-alpha.6"],"introduced":["0"],"last_affected":[],"package":"electron-updater","purl":null,"source":"GHSA-9jxc-qjr9-vjxq"},{"ecosystem":"npm","fixed":["6.3.0-alpha.6"],"introduced":["0"],"last_affected":[],"package":"electron-updater","purl":"pkg:npm/electron-updater","source":"GHSA-9jxc-qjr9-vjxq"}],"prev":{"headline":"phonenumber panics on parsing crafted phonenumber inputs","id":"CVE-2024-39697"},"products":["electron-builder"],"published":"2024-07-09","related":[{"cvss_score":7.8,"headline":"electron-updater: Uncontrolled search path elements within `AppImage` built by `app-builder-lib`","id":"CVE-2026-54672","kev_date_added":null,"published":"2026-06-30"},{"cvss_score":7.3,"headline":"electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)","id":"CVE-2024-27303","kev_date_added":null,"published":"2024-03-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["electron-userland"]},"summary":"Attackers can bypass Windows code signature verification in electron-updater to execute malicious updates if the update manifest is compromised.","url":"https://insights.sbomify.com/CVE-2024-39698/"}