Skip to content

← Public intelligence

npm package

@cubejs-backend/api-gateway

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

3 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.5npmAmendedPublished

    Cube API denial of service attack

    CVE-2023-50709 · GHSA-9759-3276-g2pm

    Affected
    • npm @cubejs-backend/api-gateway < 0.34.34
    Fixed in
    0.34.34· Vendor fix available
    Issue
    Impact It is possible to make the entire Cube API unavailable by submitting a specially crafted request to a Cube API endpoint. Patches The issue has been patched in the v0.34.34 and it's recommended that all users exposing Cube APIs to the public internet upgrade to the latest version to prevent service disruption. Workarounds There are currently no workaround for older versions, and the recommendation is to upgrade. References The issue was reported by y0d3n in our Community Slack and has been promptly patched in the recent update.

    Recommended action: Upgrade to 0.34.34 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 7.7npmAmendedPublished

    @cubejs-backend/api-gateway row level security bypass

    CVE-2022-23510 · GHSA-6jqm-3c9g-pch7

    Affected
    • npm @cubejs-backend/api-gateway >= 0.31.23, <= 0.31.23
    Fixed in
    0.31.24· Vendor fix available
    Issue
    Impact All authenticated Cube clients could bypass row-level security and run arbitrary SQL via the newly introduced /v1/sql-runner endpoint. Patches The change has been reverted in 0.31.24 Workarounds Upgrade to =0.31.24 or downgrade to <=0.31.22 Post mortem As part of implementing the Cube Cloud SQL runner functionality, we’ve added a new endpoint to the Cube Core so that we could add arbitrary queries directly to the queue, bypassing the modeling layer. The endpoint was added in this commit: https://github.com/cube-js/cube.js/commit/f1e25bb50323c0b99f3891d349467e7b637baeea It went through the code review; however, it slipped everyone’s attention that this endpoint completely bypasses any row-level security logic implemented in the modeling layer. Now anyone with a valid Cube JWT token could fetch any data, even if they were not allowed to do so by their security context. The issue was noticed by the Core team on Dec 12 and immediately reverted. The just-released 0.31.23 version of…

    Recommended action: Upgrade to 0.31.24 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. UnratednpmAmendedPublished

    Default Express middleware security check is ignored in production

    GHSA-4j6x-w426-6rc6

    Affected
    • npm @cubejs-backend/api-gateway >= 0.11.0, <= 0.11.16
    Fixed in
    0.11.17· Vendor fix available
    Issue
    Default Express middleware security check is ignored in production Impact All Cube.js deployments that use affected versions of @cubejs-backend/api-gateway with default express authentication middleware in production environment are affected. Patches @cubejs-backend/api-gateway@0.11.17 Workarounds Override default authentication express middleware: https://cube.dev/docs/@cubejs-backend-server-core#options-reference-check-auth-middleware For more information If you have any questions or comments about this advisory: Open an issue in https://github.com/cube-js/cube.js/issues Reach out us in community Slack: https://slack.cube.dev/

    Recommended action: Upgrade to 0.11.17 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →