# CVE-2022-29822: feathers-sequelize SQL injection in attribute filtering

Source: https://junglewise.ai/threats/cve-2022-29822-feathers-sequelize-sql-injection-in-attribute-filtering  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-26. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-29822 · Severity: low · CVSS 3.1 · Published 2022-10-26

feathers-sequelize is a database adapter for the Feathers.js web framework that bridges applications to multiple SQL databases. An improper parameter validation flaw allows unauthenticated attackers to inject arbitrary SQL commands, potentially exposing or modifying sensitive database records. This vulnerability affects applications using vulnerable versions without authentication requirements.

Technologies: [feathers-sequelize (npm)](https://junglewise.ai/threats/technologies/feathers-sequelize). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-29822 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-29822 being exploited in the wild.

**How severe is CVE-2022-29822?** Low severity, with a CVSS score of 3.1, published 26 October 2022.

**Which products and versions are affected?** feathers-sequelize (npm) SEMVER:introduced=6.0.0,fixed=6.3.4.

**Is there a fix for CVE-2022-29822?** Yes. feathers-sequelize (npm): upgrade to 6.3.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-29822 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2022-29822?** Check whether you run feathers-sequelize (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- feathers-sequelize (npm): upgrade to 6.3.4 or later

  ```sh
  npm install feathers-sequelize@6.3.4
  ```


## Technical details

feathers-sequelize versions 6.0.0 through 6.3.3 fail to properly validate user-supplied attribute parameters, allowing SQL injection via raw attribute selections. The vulnerability stems from the library's handling of database query parameters without adequate sanitization or parameterization. An unauthenticated attacker with network access to an affected application can craft malicious requests to inject SQL statements directly into database queries. The attack requires no authentication or user interaction. Successful exploitation allows reading, modifying, or deleting arbitrary database records. The fix, released in version 6.3.4, adds strict validation to disallow raw attribute selections in query parameters.

## Affected products

- feathersjs-ecosystem feathers-sequelize 6.0.0 through 6.3.3

## Identifiers

- CVE-2022-29822
- GHSA-5hq7-j5wq-p227

## Timeline

- 2022-10-26: disclosed: Limited public disclosure via GitHub advisory
- 2022-10-31: patched: Fix released in version 6.3.4

## References

- [https://github.com/feathersjs-ecosystem/feathers-sequelize/commit/0f2d85f0b2d556f2b6c70423dcebdbd29d95e3dc](https://github.com/feathersjs-ecosystem/feathers-sequelize/commit/0f2d85f0b2d556f2b6c70423dcebdbd29d95e3dc)
- [https://csirt.divd.nl/CVE-2022-29822](https://csirt.divd.nl/CVE-2022-29822)
- [https://csirt.divd.nl/DIVD-2022-00020](https://csirt.divd.nl/DIVD-2022-00020)
- [https://csirt.divd.nl/cases/DIVD-2022-00020](https://csirt.divd.nl/cases/DIVD-2022-00020)
- [https://csirt.divd.nl/cves/CVE-2022-29822](https://csirt.divd.nl/cves/CVE-2022-29822)
- [https://github.com/feathersjs-ecosystem/feathers-sequelize](https://github.com/feathersjs-ecosystem/feathers-sequelize)

## Related threats

- [feathers-sequelize SQL injection via improper input validation](https://junglewise.ai/threats/cve-2022-2422-feathers-sequelize-sql-injection-via-improper-input-validation)
- [Feather-Sequelize cleanQuery prototype pollution](https://junglewise.ai/threats/cve-2022-29823-feather-sequelize-cleanquery-prototype-pollution)
