Vulnerabilities in pkg:npm/fury-adapter-swagger
PACKAGECVE-2016-1000249 is a HIGH (CVSS 7.3) fury-adapter-swagger allows arbitrary file read vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Fury adapter swagger libraries in the npm ecosystem. The issue involves fury-adapter-swagger allows arbitrary file read from system. Remediation is available by upgrading affected packages to version 0.9.7.
pkg:npm/fury-adapter-swagger
Vulnerability advisories affecting package pkg:npm/fury-adapter-swagger. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2r7f-4h2c-5x73 | CVE-2016-1000249 | HIGH | fury-adapter-swagger allows arbitrary file read from system |
CVE-2016-1000249 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2016-1000249
To remediate this vulnerability, upgrade all affected Fury adapter swagger dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install fury-adapter-swagger@0.9.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls fury-adapter-swagger
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2016-1000249, inspect your project dependencies using npm:
npm ls fury-adapter-swagger
Analyze the terminal output to locate any version of Fury adapter swagger in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.7), your application is affected.
Note: The npm ls fury-adapter-swagger command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Fury adapter swagger, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-1000249 Affected Fury adapter swagger Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fury-adapter-swagger
|
npm |
≥ 0.2.0
< 0.9.7
|
0.9.7
|
References
Frequently Asked Questions
What is CVE-2016-1000249?
Which Fury adapter swagger versions are affected?
What version fixes CVE-2016-1000249?
Is fury-adapter-swagger affected?
What is the CVSS score of CVE-2016-1000249?
What CWE is associated with CVE-2016-1000249?
How can I check npm dependencies for CVE-2016-1000249?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2r7f-4h2c-5x73",
"modified" : "2023-09-11T16:45:35Z",
"published" : "2020-09-01T16:38:33Z",
"aliases" : [ "CVE-2016-1000249" ],
"summary" : "fury-adapter-swagger allows arbitrary file read from system",
"details" : "`fury-adapter-swagger` from version 0.2.0 until version 0.9.7 has a weakness that allows an attacker to read arbitrary files off of the system. This can be used to read sensitive data, or to cause a denial of service condition by attempting to read something like `/dev/zero`.\n\n## Proof of Concept:\n\n```yaml\n---\nswagger: '2.0'\ninfo:\n title: Read local files\n version: '1.0'\n\npaths:\n /foo:\n get:\n responses:\n 200:\n description: Some description\n examples:\n text/html:\n example:\n $ref: '/etc/passwd'\n```\n\n\n## Recommendation\n\nUpgrade to version 0.9.7 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "fury-adapter-swagger"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.2.0"
}, {
"fixed" : "0.9.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/apiaryio/fury-adapter-swagger/pull/89"
}, {
"type" : "WEB",
"url" : "https://github.com/apiaryio/fury-adapter-swagger/commit/777e2d68f03546a88f3203bbd4725df8b1f662a7"
}, {
"type" : "WEB",
"url" : "https://github.com/apiaryio/fury-adapter-swagger/commit/f4407e3a5323bc31123d45dbc93b8417002e4d51#diff-54c345dc104dc19440f9c2482b7883df820e8b9b699fdd8fa07e2773e7197a29"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apiaryio/fury-adapter-swagger"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/npm:fury-adapter-swagger:20161024"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/305"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:18:37Z",
"nvd_published_at" : null
}
}