Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. loadyaml
  4. ›
  5. GMS-2020-347

GMS-2020-347: Malicious code in `loadyaml`

October 1, 2020 (updated October 4, 2021)

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.

References

  • github.com/advisories/GHSA-mfc2-93pr-jf92
  • www.npmjs.com/advisories/1563

Code Behaviors & Features

Detect and mitigate GMS-2020-347 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.2

Solution

Unfortunately, there is no solution available yet.

Source file

npm/loadyaml/GMS-2020-347.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:15 +0000.