CVE-2024-11023: Firebase Firebase JavaScript SDK Allows Attackers Vulnerability
MODERATECVE-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
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-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.
npm install firebase@10.9.0
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
CVE-2024-11023 Affected Firebase Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
firebase
|
npm |
< 10.9.0
|
10.9.0
|
References
Frequently Asked Questions
What is CVE-2024-11023?
Which Firebase versions are affected?
What version fixes CVE-2024-11023?
Is firebase affected?
What is the CVSS score of CVE-2024-11023?
What CWE is associated with CVE-2024-11023?
How can I check npm dependencies for CVE-2024-11023?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}