Malicious code in chromatitle-js (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (eff7b9f53e0aed7a8a1c48ae92851ea0ed67b86566d208c78329ecb1b8a73173) src/index.js unconditionally invokes _bootstrap() from src/utils/bootstrap.js at module load time. bootstrap.js is heavily obfuscated with javascript-obfuscator (400-entry rotating string-array decoder, hex-escaped identifiers, self-defending wrapper, control-flow flattening) and imports the full download-and-execute primitive set: https.get/http.get, fs.createWriteStream, fs.mkdirSync, fs.chmodSync, fs.unlinkSync, os.tmpdir, and child_process.execFile/spawn. The destination URL, dropped filename, and executed argv are reconstructed at runtime from the obfuscated string array, so the network target and payload are concealed from static inspection. package.json declares javascript-obfuscator as a devDependency and defines an `obfuscate` build script, confirming the concealment is deliberate. The advertised purpose of the package is terminal string coloring / title setting, which does not require fetching or executing a binary at import time. Any consumer that imports chromatitle-js triggers the fetch-and-execute chain on the installer's machine.
MAL-2026-17174
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-17174
chromatitle-js
Source reference: /affected/0/package/name
- Affected versions
- 1.0.0
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.
[
{
"package": {
"name": "chromatitle-js",
"purl": "pkg:npm/chromatitle-js",
"ecosystem": "npm"
},
"versions": [
"1.0.0"
],
"database_specific": {
"cwes": [
{
"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/chromatitle-js/MAL-2026-17174.json",
"indicators": {
"evidence_files": [
{
"path": "src/utils/bootstrap.js",
"tlsh": "3e43bfc477c0e40366ce1b63bf06b9e9e13ba8b175c8a5478264b99c64bd517c2b0ef4",
"sha256": "34b527b96ac2da104bd3456e4bfa3b75f6f76146259e43ad07a7421176c9688f"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "fa8069c8c4fb6281841785b81d80edc00a10b27d",
"sha512_sri": "sha512-sHQCkgMEbZK4pH86WsbkpFL8igIIryCCQNTwP6nDUYFReNhlOAtYOSDmuNxhoKNG3z7r4PihgyXYau/WevaQ9Q=="
},
"filename": "chromatitle-js-1.0.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #14776 · Revision 1
- Added to Heist Feed
- Publisher date