npm package report

Is platformdirs safe?

Version 3.10.1 of platformdirs was compromised. Other versions are not flagged as malicious.

Do not install platformdirs 3.10.1

CRITICAL

Compromised releases. Added to CyberXYZ 2024-06-25, OSV malicious-package feed (Google / OpenSSF).

// what we observed

The publishing source recorded this as malicious without a public write-up.

// versions and what to do
Malicious
3.10.1
Move to
4.3.8-rc3 current 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 platformdirs@4.3.8-rc3

OSV record

// reach

0 direct dependencies

none carry a known advisory

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