{"id":"GHSA-38hx-3542-8fh3","aliases":["GHSA-38hx-3542-8fh3"],"related":[],"kind":"vulnerability","state":"published","title":"Malicious code in `electorn`","summary":"npm packages `loadyaml` and `electorn` were removed from the npm registry for containing malicious code. Upon installation the package runs a preinstall script that writes a public comment on GitHub containing the following information:\n- IP and IP-based geolocation\n- home directory name\n- local username \n\nThe malicious packages have been removed from the npm registry and the leaked content removed from GitHub.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"npm packages `loadyaml` and `electorn` were removed from the npm registry for containing malicious code. Upon installation the package runs a preinstall script that writes a public comment on GitHub containing the following information:\n- IP and IP-based geolocation\n- home directory name\n- local username \n\nThe malicious packages have been removed from the npm registry and the leaked content removed from GitHub.","format":"markdown","source":"ghsa"}],"published":"2020-10-01T17:09:56.000Z","modified":"2020-10-01T17:09:44.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-506"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"10.0.0"}],"ecosystem":"npm","package":"electorn","purl":"pkg:npm/electorn","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/1562","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-38hx-3542-8fh3","url":"https://github.com/advisories/GHSA-38hx-3542-8fh3","licence":"CC-BY-4.0","modified":"2020-10-01T17:09:44.000Z"}],"updatedAt":"2026-11-25T22:56:43.770Z"}