npm package report

Is nanoid safe?

nanoid (npm) has 5 known vulnerabilities, the worst rated HIGH. No single fixed version is recorded that clears every advisory, so check each one below. No malicious-package signal is recorded.

// reach

1 direct dependencies

none carry a known advisory

    290 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.


    cvss
    7.4
    high

    CVSS v3.1 base score out of 10

    epss
    0.30%
    low

    chance of exploitation in 30 days, 23rd percentile of all CVEs

    xyz score
    4.9
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-xwg4-73v4-xw9w, the advisory selected below

    // 5 advisories

    An integer overflow in nanoid(size) permanently corrupts the process-wide CSPRNG pool, causing all subsequent ID generation to return the deterministic string…

    Full advisory text at GitHub advisory or NVD.

    // cvss v3.1 vector

    CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

    Attack vector
    Network
    Attack complexity
    High
    Privileges required
    None
    User interaction
    None
    Scope
    Unchanged
    Confidentiality
    High
    Integrity
    High
    Availability
    None
    // questions
    Is nanoid safe to install?

    CyberXYZ does not call a package safe in absolute terms. It records 5 known vulnerabilities for nanoid (npm), the worst rated HIGH, and no malicious-package signal. Whether it is acceptable depends on the version you run.

    Does nanoid have known vulnerabilities?

    Yes. CyberXYZ records 5 known vulnerabilities for nanoid (npm), the worst rated HIGH. They are GHSA-xwg4-73v4-xw9w, GHSA-2v37-7h3g-55p8, GHSA-28wg-ghj8-5hjv, GHSA-mwcw-c2x4-8c55, GHSA-qrpm-p2h7-hrv2.

    How do I check nanoid before installing?

    Search nanoid in CyberXYZ Check at https://cyberxyz.io/check?q=nanoid. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


    Checked 2026-11-17 at 13:37 UTC. The most recent advisory here was published 2026-09-01. Updated continuously from NVD, GHSA, OSV and CNA feeds.

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