Malicious code in spotify-url-resolvers (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## 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. ## Source: ghsa-malware (738d7a9b81c690910d48b55a1216b247db21990ce73947114c5b58e635bb1d68) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remov
MAL-2026-14538
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-14538
spotify-url-resolvers
Source reference: /affected/0/package/name
- Affected versions
- 3.4.2
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "spotify-url-resolvers",
"purl": "pkg:npm/spotify-url-resolvers",
"ecosystem": "npm"
},
"versions": [
"3.4.2"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/spotify-url-resolvers/MAL-2026-14538.json",
"indicators": {
"evidence_files": [
{
"path": "src/BackupManager.js",
"tlsh": "7d51230a6efe5131717b34de8fa7400a6026c0473816dedd3a9c93d89f8a42549a5ff4",
"sha256": "67490305a476692e887cdc254e7fd325cf0e1ede44660789367b66dcbae78e04"
},
{
"path": "src/config.js",
"tlsh": "1b01287a98f751a6112545d7e6af502b194c80133d22f835b78c89c04fdf25c4072efe",
"sha256": "64d39d682b49f10705276cdab1fe99eaba4509e1a841ae3aa325b5793afdf508"
},
{
"path": "package.json",
"tlsh": "c0f02828cd71ada318c89a724d7b42423235d457592cbc1c3382525c8f8e13f24fd21d",
"sha256": "1671aff87a273fce6872b833c783cd55b8809260cd1dd4e46d5535fd7db47dde"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "ec29ffe92bb0d7e678720ba5ceaa6140c0beb9f3",
"sha512_sri": "sha512-T/i6+ChHhMtWjydlKZiyTrQiBGKwQYGKpYMBXH6b/UeOs5jNly0FTeGde0+Z/YAisvPhiqNNm+YMdDX4+NPvxg=="
},
"filename": "spotify-url-resolvers-3.4.2.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #21161 · Revision 1
- Added to Heist Feed
- Publisher date