{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-25813",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-02-15T16:34:48.773Z",
        "datePublished": "2023-02-22T18:14:44.579Z",
        "dateUpdated": "2024-08-02T11:32:12.360Z"
    },
    "containers": {
        "cna": {
            "title": "SQL Injection via replacements in sequelize",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-89",
                            "lang": "en",
                            "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 10,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw"
                },
                {
                    "name": "https://github.com/sequelize/sequelize/issues/14519",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sequelize/sequelize/issues/14519"
                },
                {
                    "name": "https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b"
                },
                {
                    "name": "https://github.com/sequelize/sequelize/releases/tag/v6.19.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sequelize/sequelize/releases/tag/v6.19.1"
                }
            ],
            "affected": [
                {
                    "vendor": "sequelize",
                    "product": "sequelize",
                    "versions": [
                        {
                            "version": "< 6.19.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-02-22T18:14:44.579Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Sequelize is a Node.js ORM tool. In versions prior to 6.19.1 a SQL injection exploit exists related to replacements. Parameters which are passed through replacements are not properly escaped which can lead to arbitrary SQL injection depending on the specific queries in use. The issue has been fixed in Sequelize 6.19.1. Users are advised to upgrade. Users unable to upgrade should not use the `replacements` and the `where` option in the same query."
                }
            ],
            "source": {
                "advisory": "GHSA-wrh9-cjv3-2hpw",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T11:32:12.360Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw"
                    },
                    {
                        "name": "https://github.com/sequelize/sequelize/issues/14519",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/sequelize/sequelize/issues/14519"
                    },
                    {
                        "name": "https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b"
                    },
                    {
                        "name": "https://github.com/sequelize/sequelize/releases/tag/v6.19.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/sequelize/sequelize/releases/tag/v6.19.1"
                    }
                ]
            }
        ]
    }
}