swagger-api / swagger-api/swagger-codegen
CVE-2021-43138 (High) detected in async-1.5.2.tgz
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
CVE-2021-43138 - High Severity Vulnerability
Vulnerable Library - async-1.5.2.tgz
Higher-order functions and common patterns for asynchronous code
Library home page: https://registry.npmjs.org/async/-/async-1.5.2.tgz
Path to dependency file: /samples/server/petstore/nodejs/package.json
Path to vulnerable library: /samples/server/petstore/nodejs/node_modules/swagger-tools/node_modules/async/package.json,/samples/server/petstore/nodejs/node_modules/superagent/node_modules/async/package.json,/samples/server/petstore/nodejs-google-cloud-functions/node_modules/async/package.json
Dependency Hierarchy:
- swagger-tools-0.10.1.tgz (Root Library)
- ❌ async-1.5.2.tgz (Vulnerable Library)
Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed
Found in base branches: 3.0.0, master
Vulnerability Details
In Async before 2.6.4 and 3.x before 3.2.2, a malicious user can obtain privileges via the mapValues() method, aka lib/internal/iterator.js createObjectIterator prototype pollution.
Publish Date: 2022-04-06
URL: CVE-2021-43138
CVSS 3 Score Details (7.8)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Local
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://nvd.nist.gov/vuln/detail/CVE-2021-43138
Release Date: 2022-04-06
Fix Resolution: async - 2.6.4,3.2.2
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 with /samples/server/petstore/nodejs/package.json and inspect the dependency paths listed for swagger-tools, superagent, and nodejs-google-cloud-functions. Review how async 1.5.2 is resolved, apply the suggested upgrade to async 2.6.4 or 3.2.2, and confirm the vulnerable version is no longer present in those dependency trees.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100