swagger-api / swagger-api/swagger-codegen
CVE-2016-10539 (High) detected in negotiator-0.5.3.tgz
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
CVE-2016-10539 - High Severity Vulnerability
Vulnerable Library - negotiator-0.5.3.tgz
HTTP content negotiation
Library home page: https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz
Path to dependency file: /samples/dynamic-html/package.json
Path to vulnerable library: /samples/dynamic-html/node_modules/negotiator/package.json
Dependency Hierarchy:
- express-3.21.2.tgz (Root Library)
- connect-2.30.2.tgz
- serve-index-1.7.3.tgz
- accepts-1.2.13.tgz
- ❌ negotiator-0.5.3.tgz (Vulnerable Library)
- accepts-1.2.13.tgz
- serve-index-1.7.3.tgz
- connect-2.30.2.tgz
Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed
Found in base branches: 3.0.0, master
Vulnerability Details
negotiator is an HTTP content negotiator for Node.js and is used by many modules and frameworks including Express and Koa. The header for "Accept-Language", when parsed by negotiator 0.6.0 and earlier is vulnerable to Regular Expression Denial of Service via a specially crafted string.
Publish Date: 2018-05-31
URL: CVE-2016-10539
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://www.npmjs.com/advisories/106
Release Date: 2018-05-31
Fix Resolution (negotiator): 0.6.1
Direct dependency fix Resolution (express): 4.0.0
- 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/dynamic-html/package.json and inspect its dependency tree, especially express and the transitive negotiator version. Update the dependency path so negotiator resolves to 0.6.1 or later, then verify the sample still installs and runs without the reported vulnerability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, 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