{"answers":{"affected":"8 open source packages ship an affected version, including electron.","exploited":"There is no known exploitation of CVE-2025-55305 in the wild and no public exploit code.","fix":"Upgrade electron to a fixed version for your release line: 35.7.5, 36.8.1, 37.3.1 or 38.0.0-beta.6.","what":"CVE-2025-55305 is a medium-severity code injection vulnerability in electron, published on 4 Sep 2025. 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-2025-55305 and fix it if it is affected.\n\nWhat it is: CVE-2025-55305 is a medium-severity code injection vulnerability in electron, published on 4 Sep 2025. 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-2025-55305 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electron (npm): affected all versions; fixed in 35.7.5\n- electron (npm): affected all versions; fixed in 35.7.5\n- electron (npm): affected from 36.0.0-alpha.1; fixed in 36.8.1\n- electron (npm): affected from 36.0.0-alpha.1; fixed in 36.8.1\n- electron (npm): affected from 37.0.0-alpha.1; fixed in 37.3.1\n- electron (npm): affected from 37.0.0-alpha.1; fixed in 37.3.1\n- electron (npm): affected from 38.0.0-alpha.1; fixed in 38.0.0-beta.6\n- electron (npm): affected from 38.0.0-alpha.1; fixed in 38.0.0-beta.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-2025-55305/ (Markdown: https://insights.sbomify.com/CVE-2025-55305/index.md)","id":"CVE-2025-55305","markdown":"https://insights.sbomify.com/CVE-2025-55305/index.md","name":"CVE-2025-55305","record":{"aliases":["GHSA-vmqv-hx8q-j7mg"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Electron framework","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code by modifying resources in Electron apps with specific integrity fuses enabled, requiring an upgrade to patched versions.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"description":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. In versions below 35.7.5, 36.0.0-alpha.1 through 36.8.0, 37.0.0-alpha.1 through 37.3.1 and 38.0.0-alpha.1 through 38.0.0-beta.6, ASAR Integrity Bypass via resource modification. This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is fixed in versions 35.7.5, 36.8.1, 37.3.1 and 38.0.0-beta.6.","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 is vulnerable to Code Injection via resource modification","id":"CVE-2025-55305","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":8,"n_references":9,"next":{"headline":"GenX_FX authentication bypass in JWT validation","id":"CVE-2025-55306"},"packages":[{"ecosystem":"npm","fixed":["35.7.5"],"introduced":["0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["35.7.5"],"introduced":["0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["36.8.1"],"introduced":["36.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["36.8.1"],"introduced":["36.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["37.3.1"],"introduced":["37.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["37.3.1"],"introduced":["37.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["38.0.0-beta.6"],"introduced":["38.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-vmqv-hx8q-j7mg"},{"ecosystem":"npm","fixed":["38.0.0-beta.6"],"introduced":["38.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-vmqv-hx8q-j7mg"}],"prev":{"headline":"Exiv2 has quadratic performance in ICC profile parsing in JpegBase::readMetadata","id":"CVE-2025-55304"},"products":["electron"],"published":"2025-09-04","related":[],"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":"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":"2025-09-05","vendors":["electron"]},"summary":"Attackers can execute arbitrary code by modifying resources in Electron apps with specific integrity fuses enabled, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2025-55305/"}