CVE-2020-7696: React native fast image Credential Leak Vulnerability

MODERATE
Advisory Identifier: GHSA-6xhg-q9c8-rj32
CVSS 5.3
CWE-200
Published
Advisory Summary

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

CVE-2020-7696 at a Glance

CVE Identifier CVE-2020-7696
GHSA Identifier GHSA-6xhg-q9c8-rj32
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product React native fast image
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

react-native-fast-image fixed: 8.3.0
npm install react-native-fast-image@8.3.0
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-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

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.

CVE-2020-7696 Affected React native fast image Versions

1 component(s)
Fixed Versions:
8.3.0
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?
CVE-2020-7696 is a security vulnerability in React native fast image involving Credential leak in react-native-fast-image under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which React native fast image versions are affected?
Affected versions include releases prior to 8.3.0 across affected packages: react-native-fast-image.
What version fixes CVE-2020-7696?
Upgrading to 8.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is react-native-fast-image affected?
Yes, react-native-fast-image is affected in releases prior to 8.3.0. Upgrade your dependency to 8.3.0 or later.
What is the CVSS score of CVE-2020-7696?
CVE-2020-7696 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2020-7696?
CVE-2020-7696 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2020-7696?
Run the dependency tree command: 'npm ls react-native-fast-image'. 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-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"
  }
}