CVE-2019-11069: SQL Injection in sequelize

sequelize Updated 02 Oct 2025

Summary

11/04/2019
Yes i
High
7.5

CVE-2019-11069: SQL Injection in sequelize. Affects sequelize versions >= 5.0.0, < 5.3.0. Fixed in 5.3.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Sequelize is an Object-Relational Mapping (ORM) library for Node.js that provides easy access to databases by mapping database entries to objects. It is commonly used for interacting with relational databases such as PostgreSQL, MySQL, and SQLite. However, versions prior to 5.3.0 (excluding v3 and v4) of Sequelize are vulnerable to SQL Injection. This vulnerability arises from the improper handling of backslashes in string literals when the PostgreSQL option standard_conforming_strings is not set to on by default.

Vulnerability Detail

The SQL Injection vulnerability in Sequelize allows attackers to inject malicious SQL statements into the application's database queries. By exploiting this vulnerability, an attacker can manipulate the database queries and potentially gain unauthorized access to sensitive data, modify data, or perform other malicious actions. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

5.3.0

This is the first release that contains the fix.

npm install sequelize@5.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to manually set the standard_conforming_strings option to on in the PostgreSQL configuration. This can be done by modifying the PostgreSQL configuration file and adding the line standard_conforming_strings = on. However, it is strongly recommended to upgrade to the latest version of Sequelize as soon as possible.

Conclusion

In conclusion, the SQL Injection vulnerability in Sequelize (CVE-2019-11069) can be mitigated by upgrading to version 5.3.0 or later. It is crucial to promptly address this vulnerability to prevent potential unauthorized access and data manipulation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sequelize →

Share this vulnerability

FAQ

Sequelize is an Object-Relational Mapping (ORM) library for Node.js that simplifies database access by mapping database entries to objects.

Versions prior to 5.3.0 (excluding v3 and v4) of Sequelize are vulnerable to this SQL Injection issue.

This vulnerability allows attackers to inject malicious SQL statements into the application's database queries, potentially leading to unauthorized access, data manipulation, or other malicious actions.

To fix this vulnerability, it is recommended to upgrade to version 5.3.0 or later of Sequelize.

A temporary workaround is to manually set the standard_conforming_strings option to on in the PostgreSQL configuration.

Related vulnerabilities

Recent vulnerabilities recorded for sequelize.

How To Fix

Minimum fixed version

5.3.0

This is the first release that contains the fix.

npm install sequelize@5.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback