Security Resilience

CVE-2024-21512

Published
29 May 2024
Modified
15 April 2026
CVSS Score v3.1 8.2
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
EPSS Score 0.031 88th percentile
Risk Priority 86 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-21512 is a high-severity Prototype Pollution (CWE-1321) vulnerability in Snyk (inferred from references). Its CVSS base score is 8.2 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 12% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Versions of the mysql2 package before 3.9.8 are vulnerable to prototype pollution (CWE-1321) because user-controlled input supplied to the fields and tables options is not properly sanitized when the nestTables feature is enabled. The flaw affects any application using the affected Node.js package to connect to MySQL or MariaDB databases and carries a CVSS 3.1 score of 8.2.

An unauthenticated remote attacker can supply a malicious payload in a query that triggers the pollution path, allowing modification of object prototypes. Successful exploitation can alter application behavior, leading to high-integrity impacts and limited availability consequences without requiring user interaction.

Public references point to a fix released in commit efe3db5 and pull request 2702; the recommended mitigation is to upgrade to mysql2 3.9.8 or later. Snyk advisories for both the direct package and embedded copies in webjars likewise list the patched version as the resolution.

The associated EPSS score has remained at its recorded peak of 0.6834 with no material upward movement after disclosure.

EU & UK References

Vulnerability Data

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-44966Shared CWE-1321
CVE-2026-32878Shared CWE-1321
CVE-2025-57329Shared CWE-1321
CVE-2024-27307Shared CWE-1321
CVE-2021-48012Shared CWE-1321
CVE-2023-45282Shared CWE-1321
CVE-2024-21528Shared CWE-1321
CVE-2024-32866Shared CWE-1321
CVE-2025-57820Shared CWE-1321
CVE-2023-26139Shared CWE-1321

Affected Assets

Snyk
—
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V15.3.6

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input validation and safe property assignment to prevent prototype pollution.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches prototype-pollution flaws before release.

prevents

Secure coding standards directly prohibit unsafe prototype attribute assignment and require defensive checks.

prevents

A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so it reduces ordinary software weaknesses in delivered code the way those practices do; prototype pollution is such a weakness, but the clause's ceiling on `prevents` is `partial` because the effect depends on the supplier's implementation of secure coding and testing.

blocks

Change-management processes ensure security fixes for prototype-pollution issues are tracked and deployed.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. Prototype pollution does commonly surface as CVEs in third-party libraries (lodash, jQuery, etc., as the observed examples show), so A.8.8 finds those. But most prototype pollution lives in first-party JavaScript code that nobody publishes an advisory about, and that share is invisible to A.8.8's disclosure-based programme — the same scope seam that put A.8.8 -> CWE-89 at `partial`.

References