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 package | Versions | Reported by |
|---|---|---|
| Feathers-Sequalize Sequelize.js | <v7.0.0-alpha.20 | CVE List |
| sequelize (npm) | before 6.28.1 | GitHub Advisory Database |
| @sequelize/core (npm) | before 7.0.0-alpha.20 | GitHub Advisory Database |
| sequelizejs sequelize | before 6.28.1, 7.0.0 | NVD |
All scores
| DIVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22579 changed 2025-04-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vqfx-gj96-3w95 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-22579 changed 2026-06-17 | Public domain |