Vulnerabilities in pkg:npm/fury-adapter-swagger

PACKAGE
Advisory Identifier: GHSA-2r7f-4h2c-5x73
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/fury-adapter-swagger

1 Known Advisory Record(s)

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

CVE Identifier CVE-2016-1000249
GHSA Identifier GHSA-2r7f-4h2c-5x73
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Fury adapter swagger
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

fury-adapter-swagger fixed: 0.9.7
npm install fury-adapter-swagger@0.9.7
Verify Direct and Transitive Dependencies

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

`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`. ## Proof of Concept: ```yaml --- swagger: '2.0' info: title: Read local files version: '1.0' paths: /foo: get: responses: 200: description: Some description examples: text/html: example: $ref: '/etc/passwd' ``` ## Recommendation Upgrade to version 0.9.7 or later.

CVE-2016-1000249 Affected Fury adapter swagger Versions

1 component(s)
Fixed Versions:
0.9.7
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?
CVE-2016-1000249 is a security vulnerability in Fury adapter swagger involving fury-adapter-swagger allows arbitrary file read from system under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Fury adapter swagger versions are affected?
Affected versions include releases prior to 0.9.7 across affected packages: fury-adapter-swagger.
What version fixes CVE-2016-1000249?
Upgrading to 0.9.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fury-adapter-swagger affected?
Yes, fury-adapter-swagger is affected in releases prior to 0.9.7. Upgrade your dependency to 0.9.7 or later.
What is the CVSS score of CVE-2016-1000249?
CVE-2016-1000249 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2016-1000249?
CVE-2016-1000249 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check npm dependencies for CVE-2016-1000249?
Run the dependency tree command: 'npm ls fury-adapter-swagger'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}