Vulnerabilities in pkg:npm/react-native-fast-image
PACKAGECVE-2020-7696 is a MODERATE (CVSS 5.3) credential leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting React native fast image libraries in the npm ecosystem. The issue involves credential leak in react-native-fast-image. Remediation is available by upgrading affected packages to version 8.3.0.
pkg:npm/react-native-fast-image
Vulnerability advisories affecting package pkg:npm/react-native-fast-image. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6xhg-q9c8-rj32 | CVE-2020-7696 | MODERATE | Credential leak in react-native-fast-image |
CVE-2020-7696 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2020-7696
To remediate this vulnerability, upgrade all affected React native fast image 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-native-fast-image@8.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls react-native-fast-image
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-7696, inspect your project dependencies using npm:
npm ls react-native-fast-image
Analyze the terminal output to locate any version of React native fast image in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.3.0), your application is affected.
Note: The npm ls react-native-fast-image 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In React native fast image, 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
CVE-2020-7696 Affected React native fast image Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-native-fast-image
|
npm |
< 8.3.0
|
8.3.0
|
References
Frequently Asked Questions
What is CVE-2020-7696?
Which React native fast image versions are affected?
What version fixes CVE-2020-7696?
Is react-native-fast-image affected?
What is the CVSS score of CVE-2020-7696?
What CWE is associated with CVE-2020-7696?
How can I check npm dependencies for CVE-2020-7696?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6xhg-q9c8-rj32",
"modified" : "2023-09-12T18:18:48Z",
"published" : "2021-05-18T01:52:54Z",
"aliases" : [ "CVE-2020-7696" ],
"summary" : "Credential leak in react-native-fast-image",
"details" : "This affects all versions before version 8.3.0 of package react-native-fast-image. When an image with `source={{uri: \"...\", headers: { host: \"somehost.com\", authorization: \"...\" }}` is loaded, all other subsequent images will use the same headers, this can lead to signing credentials or other session tokens being leaked to other servers.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-native-fast-image"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7696"
}, {
"type" : "WEB",
"url" : "https://github.com/DylanVann/react-native-fast-image/issues/690"
}, {
"type" : "WEB",
"url" : "https://github.com/DylanVann/react-native-fast-image/pull/691"
}, {
"type" : "WEB",
"url" : "https://github.com/DylanVann/react-native-fast-image/commit/4a7cd64f5b0aa40b04d63ccb105ee2b511abe624"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-REACTNATIVEFASTIMAGE-572228"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-10T21:06:00Z",
"nvd_published_at" : "2020-07-17T10:15:00Z"
}
}