swagger-api / swagger-api/swagger-codegen
WS-2018-0590 (High) detected in diff-3.2.0.tgz
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
WS-2018-0590 - High Severity Vulnerability
Vulnerable Library - diff-3.2.0.tgz
A javascript text diff implementation.
Library home page: https://registry.npmjs.org/diff/-/diff-3.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/diff/package.json
Dependency Hierarchy:
- ts-node-3.3.0.tgz (Root Library)
- ❌ diff-3.2.0.tgz (Vulnerable Library)
Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed
Found in base branch: master
Vulnerability Details
A vulnerability was found in diff before v3.5.0, the affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks.
Publish Date: 2018-03-05
URL: WS-2018-0590
CVSS 3 Score Details (7.1)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: High
- Privileges Required: None
- User Interaction: Required
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: Low
Suggested Fix
Type: Upgrade version
Release Date: 2018-03-05
Fix Resolution (diff): 3.5.0
Direct dependency fix Resolution (ts-node): 4.0.2
- Check this box to open an automated fix PR
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/client/petstore/typescript-fetch/tests/default/package.json and inspect how ts-node-3.3.0 brings in diff-3.2.0. Upgrade the dependency path to a fixed version, then reinstall the sample dependencies and verify that diff 3.2.0 is absent and the reported vulnerability is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, typescript
- Domain
- build-system, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100