swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

CVE-2021-44906 (High) detected in multiple libraries

Open mend-for-github-com[bot] opened this issue 3 years ago • 4 comments

CVE-2021-44906 - High Severity Vulnerability

Vulnerable Libraries - minimist-1.2.0.tgz, minimist-0.0.8.tgz, minimist-1.2.5.tgz

minimist-1.2.0.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz

Path to dependency file: /samples/client/petstore/typescript-fetch/tests/default/package.json

Path to vulnerable library: /samples/client/petstore/typescript-fetch/tests/default/node_modules/minimist/package.json

Dependency Hierarchy:

  • ts-node-3.3.0.tgz (Root Library)
    • :x: minimist-1.2.0.tgz (Vulnerable Library)
minimist-0.0.8.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz

Path to dependency file: /samples/client/petstore/javascript-promise-es6/package.json

Path to vulnerable library: /samples/client/petstore/javascript-promise-es6/node_modules/minimist/package.json,/samples/dynamic-html/node_modules/minimist/package.json,/samples/client/petstore/typescript-fetch/tests/default/node_modules/mkdirp/node_modules/minimist/package.json,/samples/client/petstore/javascript-es6/node_modules/minimist/package.json,/samples/client/petstore/typescript-node/npm/node_modules/mkdirp/node_modules/minimist/package.json

Dependency Hierarchy:

  • express-3.21.2.tgz (Root Library)
    • mkdirp-0.5.1.tgz
      • :x: minimist-0.0.8.tgz (Vulnerable Library)
minimist-1.2.5.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz

Path to dependency file: /samples/server/petstore/nodejs/package.json

Path to vulnerable library: /samples/server/petstore/nodejs/node_modules/minimist/package.json

Dependency Hierarchy:

  • swagger-tools-0.10.1.tgz (Root Library)
    • multer-1.4.2.tgz
      • mkdirp-0.5.5.tgz
        • :x: minimist-1.2.5.tgz (Vulnerable Library)

Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed

Found in base branches: 3.0.0, master

Vulnerability Details

Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).

Publish Date: 2022-03-17

URL: CVE-2021-44906

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High
For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2022-03-17

Fix Resolution (minimist): 1.2.6

Direct dependency fix Resolution (ts-node): 8.0.0

Fix Resolution (minimist): 1.2.6

Direct dependency fix Resolution (express): 4.0.0


  • [ ] Check this box to open an automated fix PR

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.