Vulnerabilities in pkg:npm/expo

PACKAGE
Advisory Identifier: GHSA-wr5g-q49g-548w
Advisory Summary

CVE-2023-28131 is a CRITICAL (CVSS 9.6) expo sdk has an oauth vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Expo libraries in the npm ecosystem. The issue involves expo sdk has an oauth vulnerability. Remediation is available by upgrading affected packages to version 48.0.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/expo

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-wr5g-q49g-548w CVE-2023-28131 CRITICAL Expo SDK has an OAuth vulnerability
GHSA-rwx9-wqj8-vr77 CVE-2020-24653 MODERATE Expo on iOS is insecure due incorrect security attribute application

CVE-2023-28131 at a Glance

CVE Identifier CVE-2023-28131
GHSA Identifier GHSA-wr5g-q49g-548w
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Expo
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

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:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-28131

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

expo fixed: 48.0.0
npm install expo@48.0.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 expo

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-28131, inspect your project dependencies using npm:

npm ls expo

Analyze the terminal output to locate any version of Expo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 48.0.0), your application is affected.

Note: The npm ls expo 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Expo, 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

A vulnerability in the expo.io framework allows an attacker to take over accounts and steal credentials on an application/website that configured the "Expo AuthSession Redirect Proxy" for social sign-in. This can be achieved once a victim clicks a malicious link. The link itself may be sent to the victim in various ways (including email, text message, an attacker-controlled website, etc).

CVE-2023-28131 Affected Expo Versions

1 component(s)
Fixed Versions:
48.0.0
Product / Package Ecosystem Affected Versions Fixed Version
expo
npm
< 48.0.0
48.0.0

References

Frequently Asked Questions

What is CVE-2023-28131?
CVE-2023-28131 is a security vulnerability in Expo involving Expo SDK has an OAuth vulnerability under CWE-522: Insufficiently Protected Credentials.
Which Expo versions are affected?
Affected versions include releases prior to 48.0.0 across affected packages: expo.
What version fixes CVE-2023-28131?
Upgrading to 48.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is expo affected?
Yes, expo is affected in releases prior to 48.0.0. Upgrade your dependency to 48.0.0 or later.
What is the CVSS score of CVE-2023-28131?
CVE-2023-28131 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-28131?
CVE-2023-28131 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check npm dependencies for CVE-2023-28131?
Run the dependency tree command: 'npm ls expo'. 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-wr5g-q49g-548w",
  "modified" : "2025-10-15T18:55:34Z",
  "published" : "2023-04-24T06:31:20Z",
  "aliases" : [ "CVE-2023-28131" ],
  "summary" : "Expo SDK has an OAuth vulnerability",
  "details" : "A vulnerability in the expo.io framework allows an attacker to take over accounts and steal credentials on an application/website that configured the \"Expo AuthSession Redirect Proxy\" for social sign-in. This can be achieved once a victim clicks a malicious link. The link itself may be sent to the victim in various ways (including email, text message, an attacker-controlled website, etc).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "expo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "48.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28131"
  }, {
    "type" : "WEB",
    "url" : "https://blog.expo.dev/security-advisory-for-developers-using-authsessions-useproxy-options-and-auth-expo-io-e470fe9346df"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/expo/expo"
  }, {
    "type" : "WEB",
    "url" : "https://www.darkreading.com/endpoint/oauth-flaw-in-expo-platform-affects-hundreds-of-third-party-sites-apps"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-15T18:55:34Z",
    "nvd_published_at" : "2023-04-24T05:15:08Z"
  }
}