VDB
Sign up
CRITICAL9.8

GHSA-2598-2f59-rmhq

SQL Injection in sequelize

Quick fix

GHSA-2598-2f59-rmhq — sequelize: upgrade to the fixed version with the command below.

npm install sequelize@3.35.1

Details

Versions of `sequelize` prior to 3.35.1 are vulnerable to SQL Injection. The package fails to sanitize JSON path keys in the Postgres dialect, which may allow attackers to inject SQL statements and execute arbitrary SQL queries.

## Recommendation

Upgrade to version 3.35.1 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/sequelize
Introduced in: 0Fixed in: 3.35.1
Fixnpm install sequelize@3.35.1

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/sequelize"]}'