# GHSA-mfc2-93pr-jf92: Malicious code in `loadyaml`

- 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:10:15.000Z
- Modified: 2020-10-01T17:09:29.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

- loadyaml (npm): up to 1.0.2

## References

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

## Sources

- GitHub Advisory Database: [GHSA-mfc2-93pr-jf92](https://github.com/advisories/GHSA-mfc2-93pr-jf92), CC-BY-4.0, modified 2020-10-01

---

Page: https://cve.day/GHSA-mfc2-93pr-jf92 · Whole record: https://cve.day/GHSA-mfc2-93pr-jf92.json · Rebuilt by cve.day 2026-11-25T22:56:45.939Z
