Upstream information

CVE-2019-16776 at MITRE

Description

Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It fails to prevent access to folders outside of the intended node_modules folder through the bin field. A properly constructed entry in the package.json bin field would allow a package publisher to modify and/or gain access to arbitrary files on a user's system when the package is installed. This behavior is still possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 5.5
Vector AV:N/AC:L/Au:S/C:P/I:P/A:N
Access Vector Network
Access Complexity Low
Authentication Single
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact None
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 8.1 7.7
Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Access Vector Network Network
Access Complexity Low High
Privileges Required Low Low
User Interaction None Required
Scope Unchanged Changed
Confidentiality Impact High High
Integrity Impact High High
Availability Impact None None
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1159352 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Linux Enterprise Module for Web Scripting 12
  • nodejs10 >= 10.18.0-1.15.1
  • nodejs10-devel >= 10.18.0-1.15.1
  • nodejs10-docs >= 10.18.0-1.15.1
  • nodejs12 >= 12.15.0-1.6.1
  • nodejs12-devel >= 12.15.0-1.6.1
  • nodejs12-docs >= 12.15.0-1.6.1
  • nodejs6 >= 6.17.1-11.30.1
  • nodejs6-devel >= 6.17.1-11.30.1
  • nodejs6-docs >= 6.17.1-11.30.1
  • npm10 >= 10.18.0-1.15.1
  • npm12 >= 12.15.0-1.6.1
  • npm6 >= 6.17.1-11.30.1
Patchnames:
SUSE-SLE-Module-Web-Scripting-12-2020-247
SUSE-SLE-Module-Web-Scripting-12-2020-429
SUSE-SLE-Module-Web-Scripting-12-2020-63
SUSE Linux Enterprise Module for Web Scripting 15 SP1
  • nodejs10 >= 10.18.0-1.15.1
  • nodejs10-devel >= 10.18.0-1.15.1
  • nodejs10-docs >= 10.18.0-1.15.1
  • nodejs8 >= 8.17.0-3.25.1
  • nodejs8-devel >= 8.17.0-3.25.1
  • nodejs8-docs >= 8.17.0-3.25.1
  • npm10 >= 10.18.0-1.15.1
  • npm8 >= 8.17.0-3.25.1
Patchnames:
SUSE-SLE-Module-Web-Scripting-15-SP1-2020-104
SUSE-SLE-Module-Web-Scripting-15-SP1-2020-43
SUSE Linux Enterprise Module for Web Scripting 15
  • nodejs10 >= 10.18.0-1.15.1
  • nodejs10-devel >= 10.18.0-1.15.1
  • nodejs10-docs >= 10.18.0-1.15.1
  • nodejs8 >= 8.17.0-3.25.1
  • nodejs8-devel >= 8.17.0-3.25.1
  • nodejs8-docs >= 8.17.0-3.25.1
  • npm10 >= 10.18.0-1.15.1
  • npm8 >= 8.17.0-3.25.1
Patchnames:
SUSE-SLE-Module-Web-Scripting-15-2020-104
SUSE-SLE-Module-Web-Scripting-15-2020-43
SUSE OpenStack Cloud 7
  • nodejs6 >= 6.17.1-11.30.1
Patchnames:
SUSE-OpenStack-Cloud-7-2020-247
SUSE OpenStack Cloud Crowbar 8
  • nodejs6 >= 6.17.1-11.30.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-8-2020-247
SUSE OpenStack Cloud Crowbar 9
  • nodejs6 >= 6.17.1-11.30.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-9-2020-247
openSUSE Leap 15.1
  • nodejs8 >= 8.17.0-lp151.2.9.1
  • nodejs8-debuginfo >= 8.17.0-lp151.2.9.1
  • nodejs8-debugsource >= 8.17.0-lp151.2.9.1
  • nodejs8-devel >= 8.17.0-lp151.2.9.1
  • nodejs8-docs >= 8.17.0-lp151.2.9.1
  • npm8 >= 8.17.0-lp151.2.9.1
Patchnames:
openSUSE-2020-59


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
SUSE Enterprise Storage 4 nodejs4 Unsupported
SUSE Enterprise Storage 4 nodejs6 Affected
SUSE Linux Enterprise 12 Module for Web and Scripting nodejs10 Released
SUSE Linux Enterprise 12 Module for Web and Scripting nodejs12 Released
SUSE Linux Enterprise 12 Module for Web and Scripting nodejs4 Unsupported
SUSE Linux Enterprise 12 Module for Web and Scripting nodejs6 Released
SUSE Linux Enterprise 15 Module for Web and Scripting nodejs10 Released
SUSE Linux Enterprise 15 Module for Web and Scripting nodejs8 Released
SUSE Linux Enterprise 15-SP1 Module for Web and Scripting nodejs10 Released
SUSE Linux Enterprise 15-SP1 Module for Web and Scripting nodejs8 Released
SUSE OpenStack Cloud 7 nodejs6 Released
SUSE OpenStack Cloud Crowbar 8 nodejs6 Released
SUSE OpenStack Cloud Crowbar 9 nodejs6 Released