# GHSA-38hx-3542-8fh3: Malicious code in `electorn`

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-10-01T17:09:56.000Z
- Modified: 2020-10-01T17:09:44.000Z
- Weaknesses: CWE-506

## Description

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:
- IP and IP-based geolocation
- home directory name
- local username 

The malicious packages have been removed from the npm registry and the leaked content removed from GitHub.

(As written by GitHub Advisory Database.)

## Affected

- electorn (npm): up to 10.0.0

## References

- <https://www.npmjs.com/advisories/1562> (web)

## Sources

- GitHub Advisory Database: [GHSA-38hx-3542-8fh3](https://github.com/advisories/GHSA-38hx-3542-8fh3), CC-BY-4.0, modified 2020-10-01

---

Page: https://cve.day/GHSA-38hx-3542-8fh3 · Whole record: https://cve.day/GHSA-38hx-3542-8fh3.json · Rebuilt by cve.day 2026-11-25T22:56:43.770Z
