GHSA-4j6x-w426-6rc6: @cubejs backend/api gateway Default Express Middleware Security Check Vulnerability

HIGH
Published
Advisory Summary

GHSA-4j6x-w426-6rc6 is a HIGH default express middleware security check vulnerability (General Security Weakness) affecting @cubejs backend/api gateway libraries in the npm ecosystem. The issue involves default express middleware security check is ignored in production. Remediation is available by upgrading affected packages to version 0.11.17.

GHSA-4j6x-w426-6rc6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4j6x-w426-6rc6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product @cubejs backend/api gateway
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-4j6x-w426-6rc6

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

@cubejs-backend/api-gateway fixed: 0.11.17
npm install @cubejs-backend/api-gateway@0.11.17
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 @cubejs-backend/api-gateway

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4j6x-w426-6rc6, inspect your project dependencies using npm:

npm ls @cubejs-backend/api-gateway

Analyze the terminal output to locate any version of @cubejs backend/api gateway in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.17), your application is affected.

Note: The npm ls @cubejs-backend/api-gateway 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 General Security Weakness. In @cubejs backend/api gateway, 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

## 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/

GHSA-4j6x-w426-6rc6 Affected @cubejs backend/api gateway Versions

1 component(s)
Fixed Versions:
0.11.17
Product / Package Ecosystem Affected Versions Fixed Version
@cubejs-backend/api-gateway
npm
≥ 0.11.0
< 0.11.17
0.11.17

References

Frequently Asked Questions

What is GHSA-4j6x-w426-6rc6?
GHSA-4j6x-w426-6rc6 is a security vulnerability in @cubejs backend/api gateway involving Default Express middleware security check is ignored in production under General Security Weakness.
Which @cubejs backend/api gateway versions are affected?
Affected versions include releases prior to 0.11.17 across affected packages: @cubejs-backend/api-gateway.
What version fixes GHSA-4j6x-w426-6rc6?
Upgrading to 0.11.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @cubejs-backend/api-gateway affected?
Yes, @cubejs-backend/api-gateway is affected in releases prior to 0.11.17. Upgrade your dependency to 0.11.17 or later.
What CWE is associated with GHSA-4j6x-w426-6rc6?
GHSA-4j6x-w426-6rc6 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-4j6x-w426-6rc6?
Run the dependency tree command: 'npm ls @cubejs-backend/api-gateway'. 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-4j6x-w426-6rc6",
  "modified" : "2020-06-16T20:58:26Z",
  "published" : "2019-11-08T17:31:17Z",
  "aliases" : [ ],
  "summary" : "Default Express middleware security check is ignored in production",
  "details" : "## Default Express middleware security check is ignored in production\n\n### Impact\nAll Cube.js deployments that use affected versions of `@cubejs-backend/api-gateway` with default express authentication middleware in production environment are affected.\n\n### Patches\n@cubejs-backend/api-gateway@0.11.17\n\n### Workarounds\nOverride default authentication express middleware: https://cube.dev/docs/@cubejs-backend-server-core#options-reference-check-auth-middleware\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/cube-js/cube.js/issues\n* Reach out us in community Slack: https://slack.cube.dev/\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@cubejs-backend/api-gateway"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.17"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.11.16"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cube-js/cube.js/security/advisories/GHSA-4j6x-w426-6rc6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-4j6x-w426-6rc6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:58:26Z",
    "nvd_published_at" : null
  }
}