CVE catalog

CVE-2019-16777

npm: CVE-2019-16777

[CVE catalog]

Severity
High · CVSS 7.7CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
2.13% · Oct 25, 2026

Versions of the npm CLI prior to 6.13.4 are vulnerable to an Arbitrary File Overwrite. It fails to prevent existing globally-installed binaries to be overwritten by other package installations. For example, if a package was installed globally and created a serve binary, any subsequent installs of packages that also create a serve binary would overwrite the previous serve binary. This behavior is still allowed in local installations and also through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannpmsid12.2.0+ds1-1fixed
Debiannpmforky12.2.0+ds1-1fixed
Debiannpmtrixie9.2.0~ds1-3fixed
Debiannpmbookworm9.2.0~ds1-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannpmsourcesid6.13.4+ds-2not yet assignedNot reported[947127]
Debiannpmsourceforky6.13.4+ds-2not yet assignedNot reported[947127]
Debiannpmsourcetrixie6.13.4+ds-2not yet assignedNot reported[947127]
Debiannpmsourcebookworm6.13.4+ds-2not yet assignedNot reported[947127]

[Debian bug #947127]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [npm]Fixed
    Details (2)
    • 9.2.0~ds1-1 · all · bookworm

      Fixed · Fixed: 6.13.4+ds-2

      dsa · npm · debian · bookworm; dsa · npm · debian · 12

    • 9.2.0~ds1-1 · all · bookworm

      Fixed · Fixed: 6.13.4+ds-2

      dsa · npm · debian · bookworm; dsa · npm · debian · 12

[Debian 13 (Trixie)]

  • [npm]Fixed
    Details (2)
    • 9.2.0~ds1-3 · all · trixie

      Fixed · Fixed: 6.13.4+ds-2

      dsa · npm · debian · 13

    • 9.2.0~ds1-3 · all · trixie

      Fixed · Fixed: 6.13.4+ds-2

      dsa · npm · debian · 13

Observed:

References