Vulnerabilities in pkg:npm/@sequelize/core

PACKAGE
Advisory Summary

GHSA-r3vq-92c6-3mqf is a HIGH (CVSS 8.8) sequelize - unsafe fall-through vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) affecting Duplicate advisory libraries in the npm ecosystem. The issue involves sequelize - unsafe fall-through in getwhereconditions. Remediation is available by upgrading affected packages to version 7.0.0-alpha.20.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@sequelize/core

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@sequelize/core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r3vq-92c6-3mqf - HIGH Duplicate advisory: Sequelize - Unsafe fall-through in getWhereConditions
GHSA-f598-mfpv-gmfx CVE-2023-22578 CRITICAL Sequelize - Default support for “raw attributes” when using parentheses
GHSA-8mwq-mj73-qv68 - CRITICAL Duplicate advisory: Sequelize vulnerable to Improper Filtering of Special Elements
GHSA-vqfx-gj96-3w95 CVE-2023-22579 CRITICAL Unsafe fall-through in getWhereConditions
GHSA-8c25-f3mj-v6h8 CVE-2023-22580 MODERATE Sequelize information disclosure vulnerability

GHSA-r3vq-92c6-3mqf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-r3vq-92c6-3mqf
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected Product Duplicate advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-r3vq-92c6-3mqf

To remediate this vulnerability, upgrade all affected Duplicate advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@sequelize/core fixed: 7.0.0-alpha.20
npm install @sequelize/core@7.0.0-alpha.20
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @sequelize/core

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-r3vq-92c6-3mqf, inspect your project dependencies using npm:

npm ls @sequelize/core

Analyze the terminal output to locate any version of Duplicate advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0-alpha.20), your application is affected.

Note: The npm ls @sequelize/core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. In Duplicate advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of [GHSA-vqfx-gj96-3w95](https://github.com/advisories/GHSA-vqfx-gj96-3w95). This link is maintained to preserve external references. ## Original Description Due to improper parameter filtering in the sequalize js library, can a attacker peform injection.

GHSA-r3vq-92c6-3mqf Affected Duplicate advisory Versions

1 component(s)
Fixed Versions:
7.0.0-alpha.20
Product / Package Ecosystem Affected Versions Fixed Version
@sequelize/core
npm
< 7.0.0-alpha.20
7.0.0-alpha.20

References

Frequently Asked Questions

What is GHSA-r3vq-92c6-3mqf?
GHSA-r3vq-92c6-3mqf is a security vulnerability in Duplicate advisory involving Sequelize - Unsafe fall-through in getWhereConditions under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion').
Which Duplicate advisory versions are affected?
Affected versions include releases prior to 7.0.0-alpha.20 across affected packages: @sequelize/core.
What version fixes GHSA-r3vq-92c6-3mqf?
Upgrading to 7.0.0-alpha.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @sequelize/core affected?
Yes, @sequelize/core is affected in releases prior to 7.0.0-alpha.20. Upgrade your dependency to 7.0.0-alpha.20 or later.
What is the CVSS score of GHSA-r3vq-92c6-3mqf?
GHSA-r3vq-92c6-3mqf has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-r3vq-92c6-3mqf?
GHSA-r3vq-92c6-3mqf is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.).
How can I check npm dependencies for GHSA-r3vq-92c6-3mqf?
Run the dependency tree command: 'npm ls @sequelize/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r3vq-92c6-3mqf",
  "modified" : "2023-04-28T22:06:24Z",
  "published" : "2023-02-16T15:30:28Z",
  "withdrawn" : "2023-02-23T16:57:49Z",
  "aliases" : [ ],
  "summary" : "Duplicate advisory: Sequelize - Unsafe fall-through in getWhereConditions",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of [GHSA-vqfx-gj96-3w95](https://github.com/advisories/GHSA-vqfx-gj96-3w95). This link is maintained to preserve external references.\n\n## Original Description\nDue to improper parameter filtering in the sequalize js library, can a attacker peform injection.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sequelize/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0-alpha.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-22579"
  }, {
    "type" : "WEB",
    "url" : "https://csirt.divd.nl/CVE-2023-22579"
  }, {
    "type" : "WEB",
    "url" : "https://csirt.divd.nl/DIVD-2022-00020"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-843" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-23T16:57:49Z",
    "nvd_published_at" : "2023-02-16T15:15:00Z"
  }
}