GHSA-mfc2-93pr-jf92 Malicious code in `loadyaml`
Malicious npm packages leak user IP, location, and username to GitHub upon installation, requiring removal of affected dependencies.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is GHSA-mfc2-93pr-jf92?
GHSA-mfc2-93pr-jf92 is a vulnerability in loadyaml, published on 1 Oct 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by GHSA-mfc2-93pr-jf92?
2 open source packages ship an affected version, including loadyaml.
| Package | Affected | Fixed in |
|---|---|---|
loadyaml npm | All versions to 1.0.2 | None |
loadyaml npm | All versions to 1.0.2 | None |
How do I fix GHSA-mfc2-93pr-jf92?
No fix has been published for GHSA-mfc2-93pr-jf92 yet. Limit exposure of the affected software until one is available.
Is GHSA-mfc2-93pr-jf92 being exploited?
There is no known exploitation of GHSA-mfc2-93pr-jf92 in the wild and no public exploit code.