{"answers":{"affected":"8 open source packages ship an affected version, including electron. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34766 in the wild and no public exploit code.","fix":"Upgrade electron to a fixed version for your release line: 38.8.6, 39.8.0, 40.7.0 or 41.0.0-beta.8.","what":"CVE-2026-34766 is a low-severity missing authorization vulnerability in Electronjs Electron, published on 3 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-34766 and fix it if it is affected.\n\nWhat it is: CVE-2026-34766 is a low-severity missing authorization vulnerability in Electronjs Electron, published on 3 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-34766 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electron (npm): affected all versions; fixed in 38.8.6\n- electron (npm): affected all versions; fixed in 38.8.6\n- electron (npm): affected from 39.0.0-alpha.1; fixed in 39.8.0\n- electron (npm): affected from 39.0.0-alpha.1; fixed in 39.8.0\n- electron (npm): affected from 40.0.0-alpha.1; fixed in 40.7.0\n- electron (npm): affected from 40.0.0-alpha.1; fixed in 40.7.0\n- electron (npm): affected from 41.0.0-alpha.1; fixed in 41.0.0-beta.8\n- electron (npm): affected from 41.0.0-alpha.1; fixed in 41.0.0-beta.8\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-2026-34766/ (Markdown: https://insights.sbomify.com/CVE-2026-34766/index.md)","id":"CVE-2026-34766","markdown":"https://insights.sbomify.com/CVE-2026-34766/index.md","name":"CVE-2026-34766","record":{"aliases":["GHSA-9899-m83m-qhpj"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Electron framework","requires_auth":"low_privilege","summary":"Electron apps may grant USB device access outside intended filters due to missing validation, bypassing security restrictions.","user_interaction":"required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"electron","vendor":"electronjs"}],"cvss":{"score":3.3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"description":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8, the select-usb-device event callback did not validate the chosen device ID against the filtered list that was presented to the handler. An app whose handler could be influenced to select a device ID outside the filtered set would grant access to a device that did not match the renderer's requested filters or was listed in exclusionFilters. The WebUSB security blocklist remained enforced regardless, so security-sensitive devices on the blocklist were not affected. The practical impact is limited to apps with unusual device-selection logic. This issue has been patched in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Electron: USB device selection not validated against filtered device list","id":"CVE-2026-34766","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"electronjs:electron","products":["electronjs:electron"],"type":"missing_authorization","year":"2026"},"n_packages":8,"n_references":1,"next":{"headline":"Electron: HTTP Response Header Injection in custom protocol handlers and webRequest","id":"CVE-2026-34767"},"packages":[{"ecosystem":"npm","fixed":["38.8.6"],"introduced":["0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["38.8.6"],"introduced":["0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["39.8.0"],"introduced":["39.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["39.8.0"],"introduced":["39.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["40.7.0"],"introduced":["40.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["40.7.0"],"introduced":["40.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["41.0.0-beta.8"],"introduced":["41.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-9899-m83m-qhpj"},{"ecosystem":"npm","fixed":["41.0.0-beta.8"],"introduced":["41.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-9899-m83m-qhpj"}],"prev":{"headline":"Electron named window.open targets not scoped to the opener's browsing context","id":"CVE-2026-34765"},"products":["electron"],"published":"2026-04-03","related":[{"cvss_score":9.8,"headline":"Chromium Remote Code Execution in electron","id":"CVE-2017-16151","kev_date_added":null,"published":"2018-06-07"},{"cvss_score":8.8,"headline":"Electron protocol handler browser vulnerable to Command Injection","id":"CVE-2018-1000118","kev_date_added":null,"published":"2018-03-07"},{"cvss_score":8.4,"headline":"Electron: Context Isolation bypass via contextBridge VideoFrame transfer","id":"CVE-2026-34780","kev_date_added":null,"published":"2026-04-04"},{"cvss_score":8.3,"headline":"Electron: \u003cwebview\u003e can enable Node.js integration in Web Workers despite embedder restrictions","id":"CVE-2026-102676","kev_date_added":null,"published":"2026-09-29"},{"cvss_score":8.2,"headline":"Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab","id":"CVE-2026-102673","kev_date_added":null,"published":"2026-09-29"},{"cvss_score":8.2,"headline":"Electron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions","id":"CVE-2026-102674","kev_date_added":null,"published":"2026-09-29"},{"cvss_score":8.1,"headline":"Electron: Use-after-free in offscreen child window paint callback","id":"CVE-2026-34774","kev_date_added":null,"published":"2026-04-03"}],"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-06","vendors":["electron"]},"summary":"Electron apps may grant USB device access outside intended filters due to missing validation, bypassing security restrictions.","url":"https://insights.sbomify.com/CVE-2026-34766/"}