CVE-2023-22580: Sequelize Sequelize Information Disclosure Vulnerability Vulnerability
MODERATECVE-2023-22580 is a MODERATE (CVSS 5.3) sequelize information disclosure vulnerability vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Sequelize libraries in the npm ecosystem. The issue involves sequelize information disclosure vulnerability. Remediation is available by upgrading affected packages to version 6.28.1, 7.0.0-alpha.20.
CVE-2023-22580 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2023-22580
To remediate this vulnerability, upgrade all affected Sequelize dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install sequelize@6.28.1
npm install @sequelize/core@7.0.0-alpha.20
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sequelize
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-22580, inspect your project dependencies using npm:
npm ls sequelize
Analyze the terminal output to locate any version of Sequelize in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.28.1), your application is affected.
Note: The npm ls sequelize 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Sequelize, 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
CVE-2023-22580 Affected Sequelize Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sequelize
|
npm |
< 6.28.1
|
6.28.1
|
|
@sequelize/core
|
npm |
< 7.0.0-alpha.20
|
7.0.0-alpha.20
|
References
Frequently Asked Questions
What is CVE-2023-22580?
Which Sequelize versions are affected?
What version fixes CVE-2023-22580?
Is sequelize affected?
Is @sequelize/core affected?
What is the CVSS score of CVE-2023-22580?
What CWE is associated with CVE-2023-22580?
How can I check npm dependencies for CVE-2023-22580?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8c25-f3mj-v6h8",
"modified" : "2023-02-22T23:15:10Z",
"published" : "2023-02-16T15:30:28Z",
"aliases" : [ "CVE-2023-22580" ],
"summary" : "Sequelize information disclosure vulnerability",
"details" : "Due to improper input filtering in the sequelize js library, can malicious queries lead to sensitive information disclosure.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sequelize"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.28.1"
} ]
} ]
}, {
"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-22580"
}, {
"type" : "WEB",
"url" : "https://github.com/sequelize/sequelize/pull/15375"
}, {
"type" : "WEB",
"url" : "https://github.com/sequelize/sequelize/pull/15699"
}, {
"type" : "WEB",
"url" : "https://csirt.divd.nl/CVE-2023-22580"
}, {
"type" : "WEB",
"url" : "https://csirt.divd.nl/DIVD-2022-00020"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sequelize/sequelize"
}, {
"type" : "WEB",
"url" : "https://github.com/sequelize/sequelize/releases/tag/v6.28.1"
}, {
"type" : "WEB",
"url" : "https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.20"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-22T23:15:10Z",
"nvd_published_at" : "2023-02-16T15:15:00Z"
}
}