{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-21512",
        "ASSIGNER": "report@snyk.io",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Prototype Pollution",
                        "cweId": "CWE-1321"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "mysql2",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "3.9.8"
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "org.webjars.npm:mysql2",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "*"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580",
                "refsource": "MISC",
                "name": "https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580"
            },
            {
                "url": "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010",
                "refsource": "MISC",
                "name": "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010"
            },
            {
                "url": "https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a",
                "refsource": "MISC",
                "name": "https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a"
            },
            {
                "url": "https://github.com/sidorares/node-mysql2/pull/2702",
                "refsource": "MISC",
                "name": "https://github.com/sidorares/node-mysql2/pull/2702"
            },
            {
                "url": "https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc",
                "refsource": "MISC",
                "name": "https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Donggyu Kim"
        }
    ],
    "impact": {
        "cvss": [
            {
                "version": "3.1",
                "attackVector": "NETWORK",
                "attackComplexity": "LOW",
                "privilegesRequired": "NONE",
                "userInteraction": "NONE",
                "scope": "UNCHANGED",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "availabilityImpact": "LOW",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P"
            }
        ]
    }
}