module-relpath @1.0.3
Vulnerability report · Last retrieved from osv.dev August 31, 2026 at 11:43 PM UTC
OSV ID
MAL-2026-14561
Ecosystem
npm
Summary
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.
Source: amazon-inspector (03bf564e2647cb828bb130eaaba71b21fb6d78928cb6e3a74165bbb2fc546b98)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.