# CVE-2026-30951: Sequelize SQL injection in JSON where clause processing

Source: https://junglewise.ai/threats/cve-2026-30951-sequelize-sql-injection-in-json-where-clause-processing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-10. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-30951 · Severity: high · CVSS 7.5 · Published 2026-03-10

Sequelize is a popular tool used by Node.js applications to communicate with databases. A security flaw allows attackers to bypass database protections and run unauthorized commands by manipulating specific data search queries. This could lead to the theft of sensitive information from any table in the database, potentially exposing customer data or internal credentials.

Technologies: [sequelize (npm)](https://junglewise.ai/threats/technologies/sequelize). Vendors: [npm](https://junglewise.ai/threats/vendors/npm), [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

**Is CVE-2026-30951 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-30951 being exploited in the wild.

**How severe is CVE-2026-30951?** High severity, with a CVSS score of 7.5, published 10 March 2026.

**Which products and versions are affected?** sequelize (npm) SEMVER:introduced=6.0.0-beta.1,fixed=6.37.8; Red Hat Confidential Compute Attestation affected.

**Is there a fix for CVE-2026-30951?** Yes. sequelize (npm): upgrade to 6.37.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-30951 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-30951?** Check whether you run sequelize (npm) or Red Hat Confidential Compute Attestation at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- sequelize (npm): upgrade to 6.37.8 or later

  ```sh
  npm install sequelize@6.37.8
  ```


## Technical details

A SQL injection vulnerability exists in Sequelize v6's handling of JSON/JSONB columns. The internal _traverseJSON() function splits JSON path keys on a double-colon (::) delimiter to identify cast types, but fails to validate or escape the resulting string. This value is then directly interpolated into a CAST(... AS <type>) SQL statement. An attacker capable of influencing the keys of a JSON object passed to a 'where' clause can inject arbitrary SQL commands. This can be used for UNION-based data exfiltration or boolean-blind injection across all supported database dialects (SQLite, PostgreSQL, MySQL, MariaDB). The issue is resolved in version 6.37.8 by implementing a whitelist of allowed cast types.

## Affected products

- Sequelize Sequelize >= 6.0.0-beta.1, < 6.37.8
- Red Hat Red Hat Satellite 6.18 affected
- Red Hat Confidential Compute Attestation 1 affected

## Identifiers

- CVE-2026-30951
- GHSA-6457-6jrx-69cr

## Timeline

- 2026-03-09: advisory: GitHub Security Advisory published
- 2026-03-10: disclosed: CVE-2026-30951 published
- 2026-03-10: patched: Fixed in version 6.37.8
- 2026-04-16: advisory: Red Hat issued security advisory RHSA-2026:8498

## References

- [https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr](https://github.com/sequelize/sequelize/security/advisories/GHSA-6457-6jrx-69cr)
- [https://access.redhat.com/errata/RHSA-2026:8498](https://access.redhat.com/errata/RHSA-2026:8498)
- [https://access.redhat.com/security/cve/CVE-2026-30951](https://access.redhat.com/security/cve/CVE-2026-30951)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2446250](https://bugzilla.redhat.com/show_bug.cgi?id=2446250)
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-30951.json)

## Related threats

- [Sequelize SQL injection in Oracle dialect escape function](https://junglewise.ai/threats/cve-2026-69240-sequelize-sql-injection-in-oracle-dialect-escape-function)
- [CRI-O /etc/passwd injection via HOME environment variable bypass](https://junglewise.ai/threats/cve-2026-15809-cri-o-etc-passwd-injection-via-home-environment-variable-bypass)
- [Sequelize SQL injection via unescaped parentheses in attributes](https://junglewise.ai/threats/cve-2023-22578-sequelize-sql-injection-via-unescaped-parentheses-in-attributes)
- [Sequelize unsafe fall-through in getWhereConditions](https://junglewise.ai/threats/cve-2023-22579-sequelize-unsafe-fall-through-in-getwhereconditions)
- [Sequelize SQL injection via replacements](https://junglewise.ai/threats/cve-2023-25813-sequelize-sql-injection-via-replacements)
