Vulnerabilities in pkg:npm/oauth-validator

PACKAGE
Advisory Summary

GHSA-cxcf-78mr-wpg7 is a CRITICAL malicious package vulnerability (General Security Weakness) affecting Oauth validator libraries in the npm ecosystem. The issue involves malicious package in oauth-validator. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/oauth-validator

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-cxcf-78mr-wpg7 - CRITICAL Malicious Package in oauth-validator

GHSA-cxcf-78mr-wpg7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cxcf-78mr-wpg7
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Oauth validator
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-cxcf-78mr-wpg7

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

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

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-cxcf-78mr-wpg7, inspect your project dependencies using npm:

npm ls oauth-validator

Analyze the terminal output to locate any version of Oauth validator 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 oauth-validator 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 Oauth validator, 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

Version 1.0.2 of `oauth-validator` contained malicious code. The code when executed in the browser would enumerate password, cvc, cardnumber fields from forms and send the extracted values to `https://js-metrics.com/minjs.php?pl=` ## Recommendation If version 1.0.2 of this module is found installed you will want to replace it with a version before or after 1.0.2. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised. Users may consider downgrading to version 1.0.1

GHSA-cxcf-78mr-wpg7 Affected Oauth validator Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
oauth-validator
npm
1.0.2
All 1 versions
1.0.2
None specified

References

Frequently Asked Questions

What is GHSA-cxcf-78mr-wpg7?
GHSA-cxcf-78mr-wpg7 is a security vulnerability in Oauth validator involving Malicious Package in oauth-validator under General Security Weakness.
Which Oauth validator versions are affected?
Affected versions include releases prior to current release patches across affected packages: oauth-validator.
What version fixes GHSA-cxcf-78mr-wpg7?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is oauth-validator affected?
Yes, oauth-validator is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-cxcf-78mr-wpg7?
GHSA-cxcf-78mr-wpg7 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-cxcf-78mr-wpg7?
Run the dependency tree command: 'npm ls oauth-validator'. 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-cxcf-78mr-wpg7",
  "modified" : "2023-07-27T20:11:25Z",
  "published" : "2020-09-01T20:29:59Z",
  "aliases" : [ ],
  "summary" : "Malicious Package in oauth-validator",
  "details" : "Version 1.0.2 of `oauth-validator` contained malicious code. The code when executed in the browser would enumerate password, cvc, cardnumber fields from forms and send the extracted values to `https://js-metrics.com/minjs.php?pl=`\n\n\n\n## Recommendation\n\nIf version 1.0.2 of this module is found installed you will want to replace it with a version before or after 1.0.2. In addition to replacing the installed module, you will also want to evaluate your application to determine whether or not user data was compromised.\n\nUsers may consider downgrading to version 1.0.1",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "oauth-validator"
    },
    "versions" : [ "1.0.2" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/632"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:30:37Z",
    "nvd_published_at" : null
  }
}