npm package report

Is fsevents safe?

30 versions of fsevents were compromised (remote access trojan dropper). Other versions are not flagged as malicious.

Do not install the 30 versions listed below

CRITICAL

Remote access trojan dropper. Added to CyberXYZ 2023-04-27, OSV malicious-package feed (Google / OpenSSF).

// what we observed

This advisory is intended to inform the npm ecosystem with details to resolve a third-party malware incident that may have impacted your infrastructure if you are directly or transitively dependent on the fsevents npm package. Overview fsevents v1.0.0 <= v1.2.10 downloaded binary executables that contained unintended code due to an expired cloud storage resource being reclaimed by a third party. Details The fsevents npm package v1.0.0 through v1.2.10 attempts to fetch a pre-built binary executable artifact (fse.node) from cloud storage. If this fetch fails, fsevents v1.x will attempt to build this artifact directly from source. Version 1.x of fsevents has been deprecated for several years and as a result the aforementioned cloud storage resource namespace was available for registration. A third party, unrelated to the fsevents maintainers, subsequently claimed this namespace and in April 2023 this third party started serving modified versions of the “fse.node” binary executable artifact to new fsevents v1.x users. As of April 27, 2023 the cloud storage resource in question has been indefinitely suspended and is no longer serving binaries. The affected cloud storage pre-fetch was removed in fsevents version 1.2.11. Impact The impact of the modified versions of fse.node appears to be limited to information gathering. Note that initial analysis was performed for the modified artifact associated with fsevents v1.2.9, which was distributed as fse-v1.2.9-node-v72-darwin-x64.tar.gz prior to the cloud storage resource being suspended. For more detailed analysis you may compare a decompilation of the v1.x fse.node artifacts on your systems with the intended fsevents v1.x source as it exists at https://github.com/fsevents/fsevents/tree/v1.x How to fix it If you are dependent on the deprecated version of fsevents v1.x, the recommended course of action is to upgrade to fsevents v2.x or remove the dependency altogether as currently maintained versions of Node.js no longer require fsevents for file system watching on macOS.

Reported by GitHub Advisory Database via OSV.

mitre ttp
T1195.001
// versions and what to do
Malicious
1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.14, 1.0.15, 1.0.17, 1.0.18-0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.2.2, 1.2.3, 1.2.4, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10
Move to
2.3.3 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 fsevents@2.3.3

OSV record

// reach

3 direct dependencies

none carry a known advisory

    38 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
    9.8
    critical

    CVSS v3.1 base score out of 10

    epss
    1.7%
    medium

    chance of exploitation in 30 days, 77th percentile of all CVEs

    xyz score
    5.2
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-8r6j-v8pm-fqw3, the advisory selected below

    // 1 advisories

    GHSA-8r6j-v8pm-fqw3

    CRITICALGitHub ratingCVE-2023-45311

    fsevents before 1.2.11 depends on the https://fsevents-binaries.s3-us-west-2.amazonaws.com URL, which might allow an adversary to execute arbitrary code if any JavaScript project (that depends on fsevents) distributes code that was obtained from that URL at a time when it was controlled by an adversary.

    // cvss v3.1 vector

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

    Attack vector
    Network
    Attack complexity
    Low
    Privileges required
    None
    User interaction
    None
    Scope
    Unchanged
    Confidentiality
    High
    Integrity
    High
    Availability
    High

    Checked 2026-11-07 at 10:13 UTC. The most recent advisory here was published 2023-10-06. Updated continuously from NVD, GHSA, OSV and CNA feeds.

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