GHSA-fwvp-x5gj-773j: React server native Malicious Package Vulnerability
CRITICALGHSA-fwvp-x5gj-773j is a CRITICAL malicious package vulnerability (General Security Weakness) affecting React server native libraries in the npm ecosystem. The issue involves malicious package in react-server-native. Remediation is available in the latest vendor maintenance releases.
GHSA-fwvp-x5gj-773j at a Glance
How to Fix GHSA-fwvp-x5gj-773j
To remediate this vulnerability, upgrade all affected React server native 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-server-native@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls react-server-native
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-fwvp-x5gj-773j, inspect your project dependencies using npm:
npm ls react-server-native
Analyze the terminal output to locate any version of React server native 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-server-native 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 React server native, 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-fwvp-x5gj-773j Affected React server native Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-server-native
|
npm |
0.0.7
All 1 versions
0.0.7
|
None specified
|
References
Frequently Asked Questions
What is GHSA-fwvp-x5gj-773j?
Which React server native versions are affected?
What version fixes GHSA-fwvp-x5gj-773j?
Is react-server-native affected?
What CWE is associated with GHSA-fwvp-x5gj-773j?
How can I check npm dependencies for GHSA-fwvp-x5gj-773j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fwvp-x5gj-773j",
"modified" : "2023-07-27T20:35:13Z",
"published" : "2020-09-01T20:33:10Z",
"aliases" : [ ],
"summary" : "Malicious Package in react-server-native",
"details" : "Version 0.0.7 of `react-server-native` 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 0.0.7 of this module is found installed you will want to replace it with a version before or after 0.0.7. 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 0.0.6",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-server-native"
},
"versions" : [ "0.0.7" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/635"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:30:44Z",
"nvd_published_at" : null
}
}