GHSA-v66p-w7qx-wv98: Express laravel passport Authentication Bypass Vulnerability
CRITICALGHSA-v66p-w7qx-wv98 is a CRITICAL authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Express laravel passport libraries in the npm ecosystem. The issue involves authentication bypass in express-laravel-passport. Remediation is available in the latest vendor maintenance releases.
GHSA-v66p-w7qx-wv98 at a Glance
How to Fix GHSA-v66p-w7qx-wv98
To remediate this vulnerability, upgrade all affected Express laravel passport 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 express-laravel-passport@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls express-laravel-passport
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-v66p-w7qx-wv98, inspect your project dependencies using npm:
npm ls express-laravel-passport
Analyze the terminal output to locate any version of Express laravel passport in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls express-laravel-passport 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Express laravel passport, 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-v66p-w7qx-wv98 Affected Express laravel passport Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
express-laravel-passport
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-v66p-w7qx-wv98?
Which Express laravel passport versions are affected?
What version fixes GHSA-v66p-w7qx-wv98?
Is express-laravel-passport affected?
What CWE is associated with GHSA-v66p-w7qx-wv98?
How can I check npm dependencies for GHSA-v66p-w7qx-wv98?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v66p-w7qx-wv98",
"modified" : "2020-08-31T18:59:44Z",
"published" : "2020-09-04T17:29:34Z",
"aliases" : [ ],
"summary" : "Authentication Bypass in express-laravel-passport",
"details" : "All versions of `express-laravel-passport` are vulnerable to an Authentication Bypass. The package fails to properly validate JWTs, allowing attackers to send HTTP requests impersonating other users.\n\n\n## Recommendation\n\nUpgrade to version 2.0.5 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "express-laravel-passport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://hackerone.com/reports/748214"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1450"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:59:44Z",
"nvd_published_at" : null
}
}