{"id":"MAL-2026-14283","revision":"bd95e0adf36f4c5dbd1e8448585d90d6","records":[{"revision":"bd95e0adf36f4c5dbd1e8448585d90d6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14283","aliases":[],"title":"Malicious code in neverthrow-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (da6f9496a578c672b465944e85c471edd19ce837ec7693d472d6c4a3ea3733a7)\nneverthrow-core@1.1.2 is a typosquat of the popular `neverthrow` library. Its package.json declares a `preinstall` script `node -e \"require('./dist/index.cjs.js').bcryptInstall()\"` that auto-runs on every `npm install`. The invoked `bcryptInstall` function inside the CJS bundle fetches `https://www.dropbox.com/scl/fi/${sha}/bcrypt-all-platforms.tar.gz`, streams the archive to disk via `Readable.from`/`pipeline`, `chmod`s the extracted files, and executes them using `spawnSync` and `createRequire`. The Dropbox path is anonymous and mutable, is not pinned to a package version, and no signature or hash verification is performed; Dropbox is unrelated to the legitimate `neverthrow` publisher. The dropper is only present in the CJS bundle — the sibling ESM build (`dist/index.es.js`) does not contain `bcryptInstall`, hiding the payload from consumers who inspect the ESM entrypoint. Package metadata (repository, homepage, author) is copied from supermacro/neverthrow to impersonate a first-party companion package.\n","state":0,"publishedAt":"2026-08-19T07:58:06+00:00","modifiedAt":"2026-08-19T08:34:49.6234946+00:00","affected":[{"ecosystem":"npm","name":"neverthrow-core","ranges":[],"versions":["1.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/neverthrow-core/v/1.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14283","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14283","identifiers":["MAL-2026-14283"]},"retained":false,"historicalAffected":[]}],"coverage":[]}