npm · Malicious package advisory
Malwarejavascript-nodejs-lint-staged-build
GHSA-63r6-62v6-c7mr
Malicious code in javascript-nodejs-lint-staged-build (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: amazon-inspector (950a7016236c5fc899c18a2afba5edad822d00009aafafb79a9a52e55dd8a106) 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/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/javascript-nodejs-lint-staged-build/MAL-2025-143884.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/javascript-nodejs-lint-staged-build/MAL-2025-143884.json - https://github.com/advisories/GHSA-63r6-62v6-c7mr
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.