npm · Malicious package advisory
Malwarelaurajames
GHSA-xjr9-5hmg-v8vc
Malicious code in laurajames (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: amazon-inspector (a15383a52b480d7b68807f1a77eeb2b6c6475ead2bbfae9f7fea32cb7925095b) This package appears to be part of the tea.xyz token reward campaign that flooded npm. These packages typically contain autopublish scripts (auto.js, autopublish.js, autopublish2.js, autopublish3.js) designed to automatically generate and publish derivative packages with randomized names to inflate developer reputation scores for tea protocol token rewards. The malicious payload modifies package.json to remove private flags, changes version numbers, generates random Indonesian-themed package names (some variants are also in English), and continuously republishes variants to pollute the npm registry. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/ce5aebcf135d19fafa94c24995d7ad8fac9d024d/osv/malicious/npm/laurajames/MAL-2025-171485.json)) **References:** - https://github.com/ossf/malicious-packages/blob/ce5aebcf135d19fafa94c24995d7ad8fac9d024d/osv/malicious/npm/laurajames/MAL-2025-171485.json - https://github.com/ossf/malicious-packages/blob/934165475d54679a7cd445f025bb8c97422cc949/osv/malicious/npm/laurajames/MAL-2025-171485.json - https://github.com/advisories/GHSA-xjr9-5hmg-v8vc
Compromised versions (1)
- > 0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.