All reports
Critical

Unsafe fall-through in getWhereConditions

Affected versions

Affected versions
< 7.0.0-alpha.20
Fixed version
7.0.0-alpha.20
Affected versions
< 6.28.1
Fixed version
6.28.1

Exploitation

CVE-2023-22579

Probability of exploitation in the next 30 days: 0.81%

FIRST EPSS · 2026-11-21

Description

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

Links