GitHub Advisoryadvisory · npm
GHSA-vqfx-gj96-3w95 Unsafe fall-through in getWhereConditions
CRITICAL
Official page ↗
- Aliases
- CVE-2023-22579
- Ecosystem
- npm
- Packages
- sequelize, @sequelize/core
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-843
- Reviewed
- 2023-02-23
Affected packages
• npm sequelize: < 6.28.1 → fixed in 6.28.1
• npm @sequelize/core: < 7.0.0-alpha.20 → fixed in 7.0.0-alpha.20
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:
```ts
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
Related
Alias · CVE (1)
- CVE-2023-22579 Due to improper parameter filtering in the sequalize js library, can a attacker peform injection. vulnerability
Weakness · CWE (1)
- CWE-843 Access of Resource Using Incompatible Type weakness
References
- https://github.com/sequelize/sequelize/security/advisories/GHSA-vqfx-gj96-3w95 web
- https://nvd.nist.gov/vuln/detail/CVE-2023-22579 advisory
- https://github.com/sequelize/sequelize/pull/15375 web
- https://github.com/sequelize/sequelize/pull/15699 web
- https://csirt.divd.nl/CVE-2023-22579 web
- https://csirt.divd.nl/DIVD-2022-00020 web
- https://github.com/sequelize/sequelize package
- https://github.com/sequelize/sequelize/discussions/15698 web
- https://github.com/sequelize/sequelize/releases/tag/v6.28.1 web
- https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.20 web