Improper Filtering of Special Elements in Sequelize - CVE-2023-22578

 

Improper Filtering of Special Elements in Sequelize - CVE-2023-22578

Published: February 24, 2023 / Updated: April 27, 2026


Vulnerability identifier: #VU128015
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2023-22578
CWE-ID: CWE-790
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: npm Inc.
Affected software:
Sequelize

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary SQL.

The vulnerability exists due to improper filtering of special elements in the attributes option when processing attribute names containing parentheses. A remote attacker can supply a specially crafted attribute value to execute arbitrary SQL.

The issue occurs because attribute strings containing parentheses are used as-is in generated SQL by default.


How to mitigate CVE-2023-22578

Install security update from vendor's website.

Sources