appium icon indicating copy to clipboard operation
appium copied to clipboard

34 vulnerabilities seen on npm install

Open arthuredelstein opened this issue 5 years ago • 4 comments

The problem

When I attempt to install on macOS (Monterey) in an empty project, I get:

> npm install appium

added 676 packages, and audited 677 packages in 2s

34 vulnerabilities (27 moderate, 1 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

Here are the details:

> npm audit
# npm audit report

101  >=1.0.0
Severity: critical
Prototype pollution in 101 - https://github.com/advisories/GHSA-cwcx-rxgc-cmw3
Depends on vulnerable versions of keypather
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/appium/node_modules/101
  assert-args  *
  Depends on vulnerable versions of 101
  node_modules/appium/node_modules/assert-args
    rpc-websockets  <=7.4.12
    Depends on vulnerable versions of assert-args
    node_modules/appium/node_modules/rpc-websockets
      appium-flutter-driver  *
      Depends on vulnerable versions of rpc-websockets
      node_modules/appium/node_modules/appium-flutter-driver
        appium  <=0.0.0-rc.0 || 0.3.0-rc.0 || 1.5.0-beta1 - 1.23.0-beta.0
        Depends on vulnerable versions of appium-android-driver
        Depends on vulnerable versions of appium-flutter-driver
        Depends on vulnerable versions of appium-ios-driver
        Depends on vulnerable versions of appium-tizen-driver
        Depends on vulnerable versions of appium-youiengine-driver
        node_modules/appium
  keypather  >=1.10.2
  Depends on vulnerable versions of 101
  node_modules/appium/node_modules/keypather

ansi-regex  >2.1.1 <5.0.1
Severity: moderate
 Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/appium/node_modules/@wdio/logger/node_modules/ansi-regex
node_modules/appium/node_modules/appium-ios-driver/node_modules/ansi-regex
node_modules/appium/node_modules/appium-tizen-driver/node_modules/ansi-regex
node_modules/appium/node_modules/cliui/node_modules/ansi-regex
node_modules/appium/node_modules/yargs/node_modules/ansi-regex
  strip-ansi  4.0.0 - 5.2.0
  Depends on vulnerable versions of ansi-regex
  node_modules/appium/node_modules/cliui/node_modules/strip-ansi
  node_modules/appium/node_modules/yargs/node_modules/strip-ansi
    cliui  4.0.0 - 5.0.0
    Depends on vulnerable versions of strip-ansi
    node_modules/appium/node_modules/cliui
      yargs  8.0.0-candidate.0 - 15.0.0
      Depends on vulnerable versions of cliui
      Depends on vulnerable versions of yargs-parser
      node_modules/appium/node_modules/yargs
        appium-tizen-driver  >=1.0.0-beta
        Depends on vulnerable versions of yargs
        node_modules/appium/node_modules/appium-tizen-driver
          appium  <=0.0.0-rc.0 || 0.3.0-rc.0 || 1.5.0-beta1 - 1.23.0-beta.0
          Depends on vulnerable versions of appium-android-driver
          Depends on vulnerable versions of appium-flutter-driver
          Depends on vulnerable versions of appium-ios-driver
          Depends on vulnerable versions of appium-tizen-driver
          Depends on vulnerable versions of appium-youiengine-driver
          node_modules/appium
    string-width  2.1.0 - 4.1.0
    Depends on vulnerable versions of strip-ansi
    node_modules/appium/node_modules/cliui/node_modules/string-width
    node_modules/appium/node_modules/yargs/node_modules/string-width

axios  <=0.21.1
Severity: high
Incorrect Comparison in axios - https://github.com/advisories/GHSA-cph5-m8f7-6c5x
fix available via `npm audit fix`
node_modules/appium/node_modules/axios

jpeg-js  <0.4.0
Severity: moderate
Uncontrolled resource consumption in jpeg-js - https://github.com/advisories/GHSA-w7q9-p3jq-fmhm
fix available via `npm audit fix`
node_modules/appium/node_modules/appium-tizen-driver/node_modules/jpeg-js
  @jimp/jpeg  <=0.12.0
  Depends on vulnerable versions of jpeg-js
  node_modules/appium/node_modules/appium-tizen-driver/node_modules/@jimp/jpeg
    @jimp/types  <=0.11.1-canary.891.908.0
    Depends on vulnerable versions of @jimp/jpeg
    node_modules/appium/node_modules/appium-tizen-driver/node_modules/@jimp/types
      jimp  0.3.6-alpha.5 - 0.11.1-canary.891.908.0
      Depends on vulnerable versions of @jimp/custom
      Depends on vulnerable versions of @jimp/types
      node_modules/appium/node_modules/appium-tizen-driver/node_modules/jimp

jszip  <3.7.0
Severity: moderate
Prototype Pollution - https://github.com/advisories/GHSA-jg8v-48h5-wgxg
fix available via `npm audit fix`
node_modules/appium/node_modules/jszip

minimist  <0.2.1
Severity: moderate
Prototype Pollution in minimist - https://github.com/advisories/GHSA-vh95-rmgr-6w4m
fix available via `npm audit fix`
node_modules/appium/node_modules/appium-tizen-driver/node_modules/minimist
  mkdirp  0.4.1 - 0.5.1
  Depends on vulnerable versions of minimist
  node_modules/appium/node_modules/appium-tizen-driver/node_modules/mkdirp
    @jimp/core  <=0.9.6-canary.860.700.0
    Depends on vulnerable versions of mkdirp
    node_modules/appium/node_modules/appium-tizen-driver/node_modules/@jimp/core
      @jimp/custom  <=0.8.6-canary.818.495.0 || 0.9.2-canary.815.538.0 - 0.9.3-canary.825.599.0 || 0.9.4-canary.832.606.0 - 0.9.4-canary.845.627.0 || 0.9.6-canary.857.681.0 - 0.9.6-canary.860.700.0
      Depends on vulnerable versions of @jimp/core
      node_modules/appium/node_modules/appium-tizen-driver/node_modules/@jimp/custom
        jimp  0.3.6-alpha.5 - 0.11.1-canary.891.908.0
        Depends on vulnerable versions of @jimp/custom
        Depends on vulnerable versions of @jimp/types
        node_modules/appium/node_modules/appium-tizen-driver/node_modules/jimp

xmldom  *
Severity: moderate
Misinterpretation of malicious XML input - https://github.com/advisories/GHSA-5fg8-2547-mr8q
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/appium/node_modules/xmldom
  appium-chromedriver  >=4.13.0
  Depends on vulnerable versions of xmldom
  node_modules/appium/node_modules/appium-chromedriver
    appium-android-driver  >=4.17.0
    Depends on vulnerable versions of appium-chromedriver
    node_modules/appium/node_modules/appium-android-driver
      appium  <=0.0.0-rc.0 || 0.3.0-rc.0 || 1.5.0-beta1 - 1.23.0-beta.0
      Depends on vulnerable versions of appium-android-driver
      Depends on vulnerable versions of appium-flutter-driver
      Depends on vulnerable versions of appium-ios-driver
      Depends on vulnerable versions of appium-tizen-driver
      Depends on vulnerable versions of appium-youiengine-driver
      node_modules/appium
      appium-espresso-driver  >=1.19.0
      Depends on vulnerable versions of appium-android-driver
      node_modules/appium/node_modules/appium-espresso-driver
      appium-uiautomator2-driver  >=1.37.0
      Depends on vulnerable versions of appium-android-driver
      Depends on vulnerable versions of appium-chromedriver
      node_modules/appium/node_modules/appium-uiautomator2-driver
        appium-youiengine-driver  >=1.2.7
        Depends on vulnerable versions of appium-uiautomator2-driver
        node_modules/appium/node_modules/appium-youiengine-driver
  appium-fake-driver  *
  Depends on vulnerable versions of xmldom
  node_modules/appium/node_modules/appium-fake-driver
  appium-ios-driver  >=0.0.6
  Depends on vulnerable versions of xmldom
  node_modules/appium/node_modules/appium-ios-driver
  appium-ios-simulator  >=3.27.0
  Depends on vulnerable versions of xmldom
  node_modules/appium/node_modules/appium-ios-simulator
    appium-xcuitest-driver  >=2.5.0
    Depends on vulnerable versions of appium-ios-simulator
    Depends on vulnerable versions of xmldom
    node_modules/appium/node_modules/appium-xcuitest-driver
  plist  0.3.2 - 3.0.3
  Depends on vulnerable versions of xmldom
  node_modules/appium/node_modules/plist

yargs-parser  6.0.0 - 13.1.1
Severity: moderate
Prototype Pollution in yargs-parser - https://github.com/advisories/GHSA-p9pc-299p-vxgp
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/appium/node_modules/yargs-parser
  yargs  8.0.0-candidate.0 - 15.0.0
  Depends on vulnerable versions of cliui
  Depends on vulnerable versions of yargs-parser
  node_modules/appium/node_modules/yargs
    appium-tizen-driver  >=1.0.0-beta
    Depends on vulnerable versions of yargs
    node_modules/appium/node_modules/appium-tizen-driver
      appium  <=0.0.0-rc.0 || 0.3.0-rc.0 || 1.5.0-beta1 - 1.23.0-beta.0
      Depends on vulnerable versions of appium-android-driver
      Depends on vulnerable versions of appium-flutter-driver
      Depends on vulnerable versions of appium-ios-driver
      Depends on vulnerable versions of appium-tizen-driver
      Depends on vulnerable versions of appium-youiengine-driver
      node_modules/appium

34 vulnerabilities (27 moderate, 1 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Environment

macOS 12.01

{
  'browser-privacy': '0.0.2',
  npm: '8.1.2',
  node: '17.1.0',
  v8: '9.5.172.25-node.13',
  uv: '1.42.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '102',
  nghttp2: '1.45.1',
  napi: '8',
  llhttp: '6.0.4',
  openssl: '3.0.0+quic',
  cldr: '39.0',
  icu: '69.1',
  tz: '2021a',
  unicode: '13.0',
  ngtcp2: '0.1.0-DEV',
  nghttp3: '0.1.0-DEV'
}

arthuredelstein avatar Nov 13 '21 22:11 arthuredelstein

We probably won't try to address these specifically for Appium 1.x. For Appium 2.0 we have a system that gets the latest dependencies, which is probably the best we are going to do in terms of security updates.

jlipps avatar Nov 16 '21 19:11 jlipps

We probably won't try to address these specifically for Appium 1.x. For Appium 2.0 we have a system that gets the latest dependencies, which is probably the best we are going to do in terms of security updates.

How to install 2.0?

MukeshHalaPlay avatar Feb 15 '22 04:02 MukeshHalaPlay

npm install -g appium@next. see https://github.com/appium/appium/blob/2.0/docs/en/advanced-concepts/migrating-to-appium-2.0.md

jlipps avatar Feb 17 '22 21:02 jlipps

8 high severity vulnerabilities

above not working

gangadharmd avatar Aug 07 '22 18:08 gangadharmd