---
id: CVE-2026-69240
title: Sequelize is a Node.js ORM tool
summary: >-
  Sequelize is a Node.js ORM tool. Prior to 6.37.4, SQL injection is possible
  with strings only if dialect is set to oracle. The escape function defined in
  sql-string.js does not escape quotes if the value starts with TO_TIMESTAMP or
  TO_DA…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
vendor: sequelize
product: sequelize
affected:
  - sequelize < 6.37.4
patched:
  - sequelize 6.37.4
published: '2026-08-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T20:36:14.340'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-69240'
references:
  - url: >-
      https://github.com/sequelize/sequelize/commit/5deadd2410ae9136a21fb652db206d27bb715f26
    label: security-advisories@github.com
  - url: 'https://github.com/sequelize/sequelize/releases/tag/v6.37.4'
    label: security-advisories@github.com
  - url: >-
      https://github.com/sequelize/sequelize/security/advisories/GHSA-v8fg-2rw7-q452
    label: security-advisories@github.com
  - url: >-
      https://github.com/sequelize/sequelize/security/advisories/GHSA-v8fg-2rw7-q452
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-v8fg-2rw7-q452'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00392
epssPercentile: 0.33242
aliases:
  - GHSA-v8fg-2rw7-q452
ecosystem: npm
ingestedAt: '2026-08-03T21:30:01.636Z'
---

## Overview

Sequelize is a Node.js ORM tool. Prior to 6.37.4, SQL injection is possible with strings only if dialect is set to oracle. The escape function defined in sql-string.js does not escape quotes if the value starts with TO_TIMESTAMP or TO_DATE. In the Oracle dialect, when val is a string and starts with TO_TIMESTAMP or TO_DATE, escape returns val directly instead of replacing single quotes. An attacker can inject arbitrary SQL expressions through an application value that reaches this escape path. This issue is fixed in version 6.37.4.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-69240)

Affected packages:

- `sequelize < 6.37.4`

Patched in:

- `sequelize 6.37.4`

Source: https://github.com/advisories/GHSA-v8fg-2rw7-q452
