CVE-2024-11023: Firebase Firebase JavaScript SDK Allows Attackers Vulnerability

MODERATE
Advisory Identifier: GHSA-3wf4-68gx-mph8
CVSS 5.3
CWE-79
Published
Advisory Summary

CVE-2024-11023 is a MODERATE (CVSS 5.3) firebase javascript sdk allows attackers vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Firebase libraries in the npm ecosystem. The issue involves firebase javascript sdk allows attackers to manipulate the "_authtokensyncurl" to point to their own server. Remediation is available by upgrading affected packages to version 10.9.0.

CVE-2024-11023 at a Glance

CVE Identifier CVE-2024-11023
GHSA Identifier GHSA-3wf4-68gx-mph8
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Firebase
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-2024-11023

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

firebase fixed: 10.9.0
npm install firebase@10.9.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 firebase

How to Check if You Are Affected

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

npm ls firebase

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

Note: The npm ls firebase 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Firebase, 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

Firebase JavaScript SDK utilizes a "FIREBASE_DEFAULTS" cookie to store configuration data, including an "_authTokenSyncURL" field used for session synchronization. If this cookie field is preset via an attacker by any other method, the attacker can manipulate the "_authTokenSyncURL" to point to their own server and it would allow am actor to capture user session data transmitted by the SDK. We recommend upgrading Firebase JS SDK at least to 10.9.0.

CVE-2024-11023 Affected Firebase Versions

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

References

Frequently Asked Questions

What is CVE-2024-11023?
CVE-2024-11023 is a security vulnerability in Firebase involving Firebase JavaScript SDK allows attackers to manipulate the "_authTokenSyncURL" to point to their own server under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Firebase versions are affected?
Affected versions include releases prior to 10.9.0 across affected packages: firebase.
What version fixes CVE-2024-11023?
Upgrading to 10.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is firebase affected?
Yes, firebase is affected in releases prior to 10.9.0. Upgrade your dependency to 10.9.0 or later.
What is the CVSS score of CVE-2024-11023?
CVE-2024-11023 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-2024-11023?
CVE-2024-11023 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2024-11023?
Run the dependency tree command: 'npm ls firebase'. 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-3wf4-68gx-mph8",
  "modified" : "2025-07-23T22:12:58Z",
  "published" : "2024-11-18T12:30:42Z",
  "aliases" : [ "CVE-2024-11023" ],
  "summary" : "Firebase JavaScript SDK allows attackers to manipulate the \"_authTokenSyncURL\" to point to their own server",
  "details" : "Firebase JavaScript SDK utilizes a \"FIREBASE_DEFAULTS\" cookie to store configuration data, including an \"_authTokenSyncURL\" field used for session synchronization.  If this cookie field is preset via an attacker by any other method, the attacker can manipulate the \"_authTokenSyncURL\" to point to their own server and it would allow am actor to capture user session data transmitted by the SDK. We recommend upgrading Firebase JS SDK at least to 10.9.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "firebase"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-11023"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/firebase/firebase-js-sdk/pull/8056"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/firebase/firebase-js-sdk/commit/245dd26e19b6c16aca7e1b7e597ed5784c2984ba"
  }, {
    "type" : "WEB",
    "url" : "https://firebase.google.com/support/release-notes/js#version_1090_-_march_14_2024"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/firebase/firebase-js-sdk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-18T20:04:30Z",
    "nvd_published_at" : "2024-11-18T11:15:05Z"
  }
}