GHSA-65m9-m259-7jqw: React oauth flow Improper Authorization Vulnerability
CRITICALGHSA-65m9-m259-7jqw is a CRITICAL improper authorization vulnerability (CWE-285: Improper Authorization) affecting React oauth flow libraries in the npm ecosystem. The issue involves improper authorization in react-oauth-flow. Remediation is available in the latest vendor maintenance releases.
GHSA-65m9-m259-7jqw at a Glance
How to Fix GHSA-65m9-m259-7jqw
To remediate this vulnerability, upgrade all affected React oauth flow 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 react-oauth-flow@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls react-oauth-flow
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-65m9-m259-7jqw, inspect your project dependencies using npm:
npm ls react-oauth-flow
Analyze the terminal output to locate any version of React oauth flow 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 react-oauth-flow 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In React oauth flow, 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-65m9-m259-7jqw Affected React oauth flow Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-oauth-flow
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-65m9-m259-7jqw?
Which React oauth flow versions are affected?
What version fixes GHSA-65m9-m259-7jqw?
Is react-oauth-flow affected?
What CWE is associated with GHSA-65m9-m259-7jqw?
How can I check npm dependencies for GHSA-65m9-m259-7jqw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-65m9-m259-7jqw",
"modified" : "2021-10-04T21:06:12Z",
"published" : "2020-09-03T15:49:29Z",
"aliases" : [ ],
"summary" : "Improper Authorization in react-oauth-flow",
"details" : "All versions of `react-oauth-flow` fail to properly implement the OAuth protocol. The package stores secrets in the front-end code. Instead of using a public OAuth client, it uses a confidential client on the browser. This may allow attackers to compromise server credentials.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-oauth-flow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ethereum/web3.js/issues/2739"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ethereum/web3.js"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1487"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:01:08Z",
"nvd_published_at" : null
}
}