swagger-api / swagger-api/swagger-codegen
CVE-2021-44906 (High) detected in multiple libraries
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
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:
- babel-cli-6.26.0.tgz (Root Library)
- chokidar-1.7.0.tgz
- fsevents-1.2.7.tgz
- node-pre-gyp-0.10.3.tgz
- rc-1.2.8.tgz
- ❌ minimist-1.2.0.tgz (Vulnerable Library)
- rc-1.2.8.tgz
- node-pre-gyp-0.10.3.tgz
- fsevents-1.2.7.tgz
- chokidar-1.7.0.tgz
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/client/petstore/javascript-es6/node_modules/minimist/package.json,/samples/client/petstore/typescript-fetch/tests/default/node_modules/mkdirp/node_modules/minimist/package.json,/samples/dynamic-html/node_modules/minimist/package.json,/samples/client/petstore/typescript-node/npm/node_modules/mkdirp/node_modules/minimist/package.json
Dependency Hierarchy:
- rewire-3.0.2.tgz (Root Library)
- babel-core-6.26.3.tgz
- babel-register-6.26.0.tgz
- mkdirp-0.5.1.tgz
- ❌ minimist-0.0.8.tgz (Vulnerable Library)
- mkdirp-0.5.1.tgz
- babel-register-6.26.0.tgz
- babel-core-6.26.3.tgz
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
- ❌ minimist-1.2.5.tgz (Vulnerable Library)
- mkdirp-0.5.5.tgz
- multer-1.4.2.tgz
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
Suggested Fix
Type: Upgrade version
Release Date: 2022-03-17
Fix Resolution: minimist - 1.2.6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the package.json files under samples/client/petstore/typescript-fetch/tests/default, samples/client/petstore/javascript-promise-es6, samples/client/petstore/javascript-es6, samples/dynamic-html, samples/client/petstore/typescript-node/npm, and samples/server/petstore/nodejs. Trace the listed transitive dependencies and verify that minimist is upgraded to 1.2.6 or later in each affected dependency tree. Done means the vulnerable minimist versions no longer appear in these samples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs, typescript
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100