GHSA-vw7g-jq9m-3q9v: Glance Unauthorized File Access Vulnerability

MODERATE
Published
Advisory Summary

GHSA-vw7g-jq9m-3q9v is a MODERATE unauthorized file access vulnerability (General Security Weakness) affecting Glance libraries in the npm ecosystem. The issue involves unauthorized file access in glance. Remediation is available by upgrading affected packages to version 3.0.7.

GHSA-vw7g-jq9m-3q9v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vw7g-jq9m-3q9v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Glance
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-vw7g-jq9m-3q9v

To remediate this vulnerability, upgrade all affected Glance dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

glance fixed: 3.0.7
npm install glance@3.0.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 glance

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-vw7g-jq9m-3q9v, inspect your project dependencies using npm:

npm ls glance

Analyze the terminal output to locate any version of Glance in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.7), your application is affected.

Note: The npm ls glance 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 General Security Weakness. In Glance, 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

Versions of `glance` prior to 3.0.7 are vulnerable to Unauthorized File Access. The package provides a `--nodot` option meant to hide files and directories with names that begin with a `.`, such as `.git` but fails to hide files inside a folder that begins with `.`. ## Recommendation Upgrade to version 3.0.7 or later.

GHSA-vw7g-jq9m-3q9v Affected Glance Versions

1 component(s)
Fixed Versions:
3.0.7
Product / Package Ecosystem Affected Versions Fixed Version
glance
npm
< 3.0.7
3.0.7

References

Frequently Asked Questions

What is GHSA-vw7g-jq9m-3q9v?
GHSA-vw7g-jq9m-3q9v is a security vulnerability in Glance involving Unauthorized File Access in glance under General Security Weakness.
Which Glance versions are affected?
Affected versions include releases prior to 3.0.7 across affected packages: glance.
What version fixes GHSA-vw7g-jq9m-3q9v?
Upgrading to 3.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is glance affected?
Yes, glance is affected in releases prior to 3.0.7. Upgrade your dependency to 3.0.7 or later.
What CWE is associated with GHSA-vw7g-jq9m-3q9v?
GHSA-vw7g-jq9m-3q9v is classified under General Security Weakness.
How can I check npm dependencies for GHSA-vw7g-jq9m-3q9v?
Run the dependency tree command: 'npm ls glance'. 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-vw7g-jq9m-3q9v",
  "modified" : "2020-08-31T18:36:38Z",
  "published" : "2020-09-02T18:23:35Z",
  "aliases" : [ ],
  "summary" : "Unauthorized File Access in glance",
  "details" : "Versions of `glance` prior to 3.0.7 are vulnerable to Unauthorized File Access. The package provides a `--nodot` option meant to hide files and directories with names that begin with a `.`, such as `.git` but fails to hide files inside a folder that begins with `.`. \n\n\n## Recommendation\n\nUpgrade to version 3.0.7 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "glance"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/490379"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/811"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:36:38Z",
    "nvd_published_at" : null
  }
}