# CVE-2024-21512

## Summary

- **CVE ID:** CVE-2024-21512
- **Severity:** HIGH
- **CVSS Score:** 8.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P)
- **CWE:** CWE-1321
- **Published:** May 29, 2024
- **Last Modified:** Mar 13, 2026

## Description

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.

## Affected Products

- n/a — mysql2 (0)
- n/a — org.webjars.npm:mysql2 (0)

## References

- [CNA](https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580)
- [CNA](https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010)
- [CNA](https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a)
- [CNA](https://github.com/sidorares/node-mysql2/pull/2702)
- [CNA](https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 3.11%
- **EPSS Percentile:** 87.2

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-18._