Vulnerabilities in pkg:npm/react-oauth-flow

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/react-oauth-flow

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/react-oauth-flow. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-65m9-m259-7jqw - CRITICAL Improper Authorization in react-oauth-flow

GHSA-65m9-m259-7jqw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-65m9-m259-7jqw
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-285: Improper Authorization
Affected Product React oauth flow
Package Ecosystem npm
Published Date
Last Updated

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.

react-oauth-flow fixed: Latest secure release
npm install react-oauth-flow@Latest secure release
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 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

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. ## Recommendation No fix is currently available. Consider using an alternative module until a fix is made available.

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?
GHSA-65m9-m259-7jqw is a security vulnerability in React oauth flow involving Improper Authorization in react-oauth-flow under CWE-285: Improper Authorization.
Which React oauth flow versions are affected?
Affected versions include releases prior to current release patches across affected packages: react-oauth-flow.
What version fixes GHSA-65m9-m259-7jqw?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is react-oauth-flow affected?
Yes, react-oauth-flow is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-65m9-m259-7jqw?
GHSA-65m9-m259-7jqw is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for GHSA-65m9-m259-7jqw?
Run the dependency tree command: 'npm ls react-oauth-flow'. 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-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
  }
}