-= Per source details. Do not edit below this line.=-
The package presents itself as relative-import-path (README title, homepage and repository URL point at github.com/marko-js/relative-import-path, and the.d.ts documents only relativeImportPath), but the CJS bundle at dist/index.js does not export the documented API. Instead it exports a single undocumented function modshit(moduleName, size) that reads public/logo.png from the current working directory, slices the trailing size bytes off the file, resolves the path ../${moduleName}/public/logo.png relative to its own directory, creates parent directories as needed, and writes those trailing bytes to that location. The effect is a steganographic second-stage helper: bytes appended to the tail of a PNG are extracted and planted into an arbitrary sibling package's directory on the installer's disk under the caller's chosen name. The exported symbol does not match the documented API, is named to obscure its purpose, and provides a primitive whose only use is smuggling payload bytes hidden inside an image into other node_modules entries.
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 remove all malicious software resulting from installing it.
{
"malicious-packages-origins": [
{
"id": "GHSA-pmg4-2q5x-v3x5",
"import_time": "2026-08-27T14:55:50.563048995Z",
"modified_time": "2026-08-27T13:51:36Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "97776a8746c6c0d75fee50594f26150e0a791d97ade2056c489c1ca8da0196ae",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-019187",
"import_time": "2026-08-31T17:16:15.504779219Z",
"modified_time": "2026-08-31T16:51:05Z",
"sha256": "03bf564e2647cb828bb130eaaba71b21fb6d78928cb6e3a74165bbb2fc546b98",
"source": "amazon-inspector",
"versions": [
"1.0.1"
]
},
{
"id": "IN-MAL-2026-019256",
"import_time": "2026-08-31T18:22:26.945575229Z",
"modified_time": "2026-08-31T17:55:27Z",
"sha256": "42312a6ef711b775012714a5fbd93495e09cd516ce4d6d60b606953b0018ac17",
"source": "amazon-inspector",
"versions": [
"1.0.2"
]
},
{
"id": "IN-MAL-2026-019258",
"import_time": "2026-08-31T18:22:27.026844018Z",
"modified_time": "2026-08-31T17:55:44Z",
"sha256": "c28b141d06d34fafc2248d36cb28a08dd22e62a4e6ca90ebedfe179cb3e44ee6",
"source": "amazon-inspector",
"versions": [
"1.0.3"
]
}
]
}[
{
"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.",
"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.",
"name": "Embedded Malicious Code"
}
]
{
"evidence_files": [
{
"path": "dist/index.js",
"sha256": "c4e6cce658831a50aca1e0c685e133e4003f6890775956b63e981beea300d755",
"tlsh": "c17158862efe75320227a1b9256bd9097b6d9453224dd94cf78c63f06f835348de0ee8"
},
{
"path": "package.json",
"sha256": "2089c6d375b92e9b4755705a0ae8d023999908031ea0d04ec12349e315205cee",
"tlsh": "e4217d25cca88d630ad1465ab8754741653088434ea1fc08b3a6136d4f5d6ff33bda5e"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/module-relpath/MAL-2026-14561.json"