CVE-2024-4128: Firebase tools Firebase Vulnerable To CRSF Attack Vulnerability

LOW
Advisory Identifier: GHSA-rcm2-22f3-pqv3
CVSS 2.6
CWE-352
Published
Advisory Summary

CVE-2024-4128 is a LOW (CVSS 2.6) firebase vulnerable to crsf attack vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Firebase tools libraries in the npm ecosystem. The issue involves firebase vulnerable to crsf attack. Remediation is available by upgrading affected packages to version 13.6.0.

CVE-2024-4128 at a Glance

CVE Identifier CVE-2024-4128
GHSA Identifier GHSA-rcm2-22f3-pqv3
Severity LOW
CVSS v3.1 Base Score 2.6
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Firebase tools
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 2.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2024-4128

To remediate this vulnerability, upgrade all affected Firebase tools 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-tools fixed: 13.6.0
npm install firebase-tools@13.6.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-tools

How to Check if You Are Affected

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

npm ls firebase-tools

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

Note: The npm ls firebase-tools 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Firebase tools, 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 vulnerability was a potential CSRF attack. When running the Firebase emulator suite, there is an export endpoint that is used normally to export data from running emulators. If a user was running the emulator and navigated to a malicious website with the exploit on a browser that allowed calls to localhost (ie Chrome before v94), the website could exfiltrate emulator data. We recommend upgrading past version 13.6.0 or [commit 068a2b08dc308c7ab4b569617f5fc8821237e3a0](https://github.com/firebase/firebase-tools/commit/068a2b08dc308c7ab4b569617f5fc8821237e3a0).

CVE-2024-4128 Affected Firebase tools Versions

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

References

Frequently Asked Questions

What is CVE-2024-4128?
CVE-2024-4128 is a security vulnerability in Firebase tools involving Firebase vulnerable to CRSF attack under CWE-352: Cross-Site Request Forgery (CSRF).
Which Firebase tools versions are affected?
Affected versions include releases prior to 13.6.0 across affected packages: firebase-tools.
What version fixes CVE-2024-4128?
Upgrading to 13.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is firebase-tools affected?
Yes, firebase-tools is affected in releases prior to 13.6.0. Upgrade your dependency to 13.6.0 or later.
What is the CVSS score of CVE-2024-4128?
CVE-2024-4128 has a CVSS v3.1 base score of 2.6 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-4128?
CVE-2024-4128 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check npm dependencies for CVE-2024-4128?
Run the dependency tree command: 'npm ls firebase-tools'. 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-rcm2-22f3-pqv3",
  "modified" : "2025-07-22T21:41:39Z",
  "published" : "2024-05-02T15:30:35Z",
  "aliases" : [ "CVE-2024-4128" ],
  "summary" : "Firebase vulnerable to CRSF attack",
  "details" : "This vulnerability was a potential CSRF attack. When running the Firebase emulator suite, there is an export endpoint that is used normally to export data from running emulators. If a user was running the emulator and navigated to a malicious website with the exploit on a browser that allowed calls to localhost (ie Chrome before v94), the website could exfiltrate emulator data. We recommend upgrading past version 13.6.0 or [commit 068a2b08dc308c7ab4b569617f5fc8821237e3a0](https://github.com/firebase/firebase-tools/commit/068a2b08dc308c7ab4b569617f5fc8821237e3a0).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "firebase-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "13.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-4128"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/firebase/firebase-tools/pull/6944"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/firebase/firebase-tools/commit/068a2b08dc308c7ab4b569617f5fc8821237e3a0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/firebase/firebase-tools"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-03T20:01:45Z",
    "nvd_published_at" : "2024-05-02T14:15:10Z"
  }
}