{"answers":{"affected":"2 open source packages ship an affected version, including electron. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-1000118 in the wild and no public exploit code.","fix":"Upgrade electron to 1.8.2-beta5 or later.","what":"CVE-2018-1000118 is a high-severity command injection vulnerability in Electronjs Electron, published on 7 Mar 2018. 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-2018-1000118 and fix it if it is affected.\n\nWhat it is: CVE-2018-1000118 is a high-severity command injection vulnerability in Electronjs Electron, published on 7 Mar 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-1000118 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electron (npm): affected all versions; fixed in 1.8.2-beta5\n- electron (npm): affected all versions; fixed in 1.8.2-beta5\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-2018-1000118/ (Markdown: https://insights.sbomify.com/CVE-2018-1000118/index.md)","id":"CVE-2018-1000118","markdown":"https://insights.sbomify.com/CVE-2018-1000118/index.md","name":"CVE-2018-1000118","record":{"aliases":["GHSA-fjqr-fx3f-g4rv"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Electron framework","requires_auth":"none","summary":"An attacker can execute arbitrary commands by tricking a user into opening a malicious Electron protocol handler link in their browser.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"electron","vendor":"electronjs"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Github Electron version Electron 1.8.2-beta.4 and earlier contains a Command Injection vulnerability in Protocol Handler that can result in command execute. This attack appear to be exploitable via the victim opening an electron protocol handler in their browser. This vulnerability appears to have been fixed in Electron 1.8.2-beta.5. This issue is due to an incomplete fix for CVE-2018-1000006, specifically the black list used was not case insensitive allowing an attacker to potentially bypass it.","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 protocol handler browser vulnerable to Command Injection","id":"CVE-2018-1000118","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"electronjs:electron","products":["electronjs:electron"],"type":"command_injection","year":"2018"},"n_packages":2,"n_references":2,"next":{"headline":"rack-protection gem timing attack vulnerability when validating CSRF token","id":"CVE-2018-1000119"},"packages":[{"ecosystem":"npm","fixed":["1.8.2-beta5"],"introduced":["0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-fjqr-fx3f-g4rv"},{"ecosystem":"npm","fixed":["1.8.2-beta5"],"introduced":["0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-fjqr-fx3f-g4rv"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2018-1000117"},"products":["n/a"],"published":"2018-03-07","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.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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"An attacker can execute arbitrary commands by tricking a user into opening a malicious Electron protocol handler link in their browser.","url":"https://insights.sbomify.com/CVE-2018-1000118/"}