NoSQL Injection in sequelize

sequelize Updated 02 Oct 2025

Summary

04/06/2019
HIGH
Yes i
High
Not published

GHSA-wfp9-vr4j-f49j: NoSQL Injection in sequelize. Affects sequelize versions < 4.12.0. Fixed in 4.12.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 JavaScript objects. It is commonly used with SQL databases such as MySQL, PostgreSQL, and SQLite. However, versions of sequelize prior to 4.12.0 are vulnerable to NoSQL Injection.

Vulnerability Detail

NoSQL Injection is a type of injection attack that targets NoSQL databases. In the case of sequelize, query operators such as $gt are not properly sanitized, allowing an attacker to manipulate data queries. This can lead to unauthorized access, data manipulation, or even data loss. The vulnerability has a severity rating of HIGH (CWE-89).

How To Fix

Latest published version: 6.37.8 as of 23 Oct 2026

npm install sequelize@6.37.8

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.12.0

This is the first release that contains the fix.

npm install sequelize@4.12.0

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

Conclusion

NoSQL Injection in sequelize can lead to serious security issues, including unauthorized access and data manipulation. It is crucial to upgrade to version 4.12.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sequelize →

Share this vulnerability

FAQ

NoSQL Injection is a type of injection attack that targets NoSQL databases. It involves manipulating data queries by exploiting vulnerabilities in the application's input validation and query construction.

NoSQL Injection can lead to unauthorized access, data manipulation, or even data loss. Attackers can bypass authentication, retrieve sensitive information, modify or delete data, and perform other malicious actions.

NoSQL Injection and SQL Injection are similar in concept but target different types of databases. SQL Injection attacks exploit vulnerabilities in SQL databases, while NoSQL Injection attacks target NoSQL databases, which use different query languages and data structures.

Yes, NoSQL Injection can be prevented by properly validating and sanitizing user input, using parameterized queries or prepared statements, and implementing strict access controls and authentication mechanisms.

Yes, upgrading to version 4.12.0 or later of sequelize includes the necessary fixes to prevent NoSQL Injection. It is recommended to always use the latest stable version of the library to ensure the best security.

Related vulnerabilities

Recent vulnerabilities recorded for sequelize.

How To Fix

Latest published version: 6.37.8 as of 23 Oct 2026

npm install sequelize@6.37.8

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.12.0

This is the first release that contains the fix.

npm install sequelize@4.12.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