GHSA-4j6x-w426-6rc6: @cubejs backend/api gateway Default Express Middleware Security Check Vulnerability
HIGHGHSA-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
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.
npm install @cubejs-backend/api-gateway@0.11.17
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
GHSA-4j6x-w426-6rc6 Affected @cubejs backend/api gateway Versions
1 component(s)| 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?
Which @cubejs backend/api gateway versions are affected?
What version fixes GHSA-4j6x-w426-6rc6?
Is @cubejs-backend/api-gateway affected?
What CWE is associated with GHSA-4j6x-w426-6rc6?
How can I check npm dependencies for GHSA-4j6x-w426-6rc6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}