VYPR

npm · Malicious package advisory

Malware

spotify-url-resolvers

GHSA-mg73-v34h-w9f9

Malicious code in spotify-url-resolvers (npm)

Details

**Severity:** Critical

**Affected versions:** `= 3.4.2`

## Source: amazon-inspector (7318f0d70d44a05847fe3363f59c4e1465df1ecab43fc87757c324397e2b1cea)
Package is published under the name 'spotify-url-resolvers' but its index.js starts a backup loop at module load that archives process.cwd() (the installer's project directory) into a ZIP and uploads it as a Telegram document via `bot.telegram.sendDocument` to a hardcoded bot token and chat_id defined in src/config.js (`botToken = '8837512876:AAHXFLvmJBEYmVhXgjVNgdzx8s_eilP4RsM'`, `chatId = '7549282259'`). The archive-exclusion list drops node_modules and.git but does not exclude.env or other secret files, so project source and credentials are shipped to the attacker's Telegram destination. The loop repeats every hour. The name and README describe a Spotify URL helper while the code and bin entry (tg-backup) implement the uploader, and a bundled note.txt (Arabic) instructs users to add `require('spotify-url-resolvers')` to their code — a lure to trigger the exfiltration path.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9f962231c5e923da9c86659c734383ea204a8e46/osv/malicious/npm/spotify-url-resolvers/MAL-2026-14538.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/9f962231c5e923da9c86659c734383ea204a8e46/osv/malicious/npm/spotify-url-resolvers/MAL-2026-14538.json
- https://www.npmjs.com/package/spotify-url-resolvers/v/3.4.2
- https://github.com/advisories/GHSA-mg73-v34h-w9f9

Compromised versions (1)

  • = 3.4.2

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.