GHSA-vw7g-jq9m-3q9v: Glance Unauthorized File Access Vulnerability
MODERATEGHSA-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
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.
npm install glance@3.0.7
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
GHSA-vw7g-jq9m-3q9v Affected Glance Versions
1 component(s)| 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?
Which Glance versions are affected?
What version fixes GHSA-vw7g-jq9m-3q9v?
Is glance affected?
What CWE is associated with GHSA-vw7g-jq9m-3q9v?
How can I check npm dependencies for GHSA-vw7g-jq9m-3q9v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}