Vulnerability GHSA-vqfx-gj96-3w95

Critical
CRITICAL RISK
CVSS Score: 9.9
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
3 years ago
February 23, 2023 at 04:58 PM UTC
Unsafe fall-through in getWhereConditions
<6.28.1
<6.28.1

Summary

Unsafe fall-through in getWhereConditions

Details

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 [email protected] & @sequelize/[email protected]

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

Timeline

Published
3 years ago
February 23, 2023 at 04:58 PM UTC
Fixed (7.0.0-alpha.20)
3 years ago
December 22, 2022 at 08:19 AM UTC
Fixed (6.28.1)
3 years ago
February 21, 2023 at 09:47 PM UTC
Last Modified
3 years ago
November 08, 2023 at 04:11 AM UTC