npm package report

Is napi-postinstall safe?

Version 0.3.1 of napi-postinstall was compromised. Other versions are not flagged as malicious.

Do not install napi-postinstall 0.3.1

CRITICAL

Compromised releases. Added to CyberXYZ 2025-07-21, OSV malicious-package feed (Google / OpenSSF).

// what we observed

This package installs a windows based malware file node-gyp.dll via install.js

// versions and what to do
Malicious
0.3.1
Move to
0.3.7 newest 0.x release, no known advisory

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

npm install napi-postinstall@0.3.7

OSV recordadvisory

// reach

0 direct dependencies

none carry a known advisory

    1 packages depend on it

    an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.



    Checked 2026-10-31 at 00:01 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.