CVE-2023-22579
JSON

9.9critical

Sequalize - Unsafe fall-through in getWhereConditions

Severity
9.9critical CVSS:3.1 by DIVD
Exploit likelihood
1.01% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
DIVD
Also known as
GHSA-vqfx-gj96-3w95

Description

Due to improper parameter filtering in the sequalize js library, can a attacker peform injection.

Affected

Product or packageVersionsReported by
Feathers-Sequalize Sequelize.js<v7.0.0-alpha.20CVE List
sequelize (npm)before 6.28.1GitHub Advisory Database
@sequelize/core (npm)before 7.0.0-alpha.20GitHub Advisory Database
sequelizejs sequelizebefore 6.28.1, 7.0.0NVD

All scores

DIVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-843

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Due to improper parameter filtering in the sequalize js library, can a attacker peform injection.

GitHub Advisory Database
Impact

Providing an invalid value to the where option of a query caused Sequelize to ignore that option instead of throwing an error.

A finder call like the following did not throw an error:

User.findAll({
  where: new Date(),
});

As this option is typically used with plain javascript objects, be aware that this only happens at the top level of this option.

Patches

This issue has been patched in sequelize@6.28.1 & @sequelize/core@7.0.0.alpha-20

References

A discussion thread about this issue is open at https://github.com/sequelize/sequelize/discussions/15698

CVE: CVE-2023-22579 Snyk: https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-3324090

References

Sources

SourceRecordLicence
CVE ListCVE-2023-22579 changed 2025-04-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-vqfx-gj96-3w95 changed 2023-11-08CC-BY-4.0
NVDCVE-2023-22579 changed 2026-06-17Public domain