{"id":"GHSA-76xq-58hj-vwm2","aliases":["GHSA-76xq-58hj-vwm2"],"related":[],"kind":"vulnerability","state":"published","title":"Malicious Package in test-module-a","summary":"All versions of `test-module-a` contain malicious code as a preinstall script. The package fetches all names of npm packages owned by the user and attempts to add another maintainer to every package as a means of package hijacking,\n\n\n## Recommendation\n\nRemove the package from your system. If you own any packages that were compromised please contact npm security immediately at security@npmjs.com. Also enable 2FA for publishing to further secure packages you maintain.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"All versions of `test-module-a` contain malicious code as a preinstall script. The package fetches all names of npm packages owned by the user and attempts to add another maintainer to every package as a means of package hijacking,\n\n\n## Recommendation\n\nRemove the package from your system. If you own any packages that were compromised please contact npm security immediately at security@npmjs.com. Also enable 2FA for publishing to further secure packages you maintain.","format":"markdown","source":"ghsa"}],"published":"2020-09-11T21:16:59.000Z","modified":"2021-09-30T22:06:07.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-506"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"npm","package":"test-module-a","purl":"pkg:npm/test-module-a","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/929","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-76xq-58hj-vwm2","url":"https://github.com/advisories/GHSA-76xq-58hj-vwm2","licence":"CC-BY-4.0","modified":"2021-09-30T22:06:07.000Z"}],"updatedAt":"2026-11-25T22:56:44.492Z"}