Skip to content

mysql2 vulnerable to Prototype Pollution

High severity GitHub Reviewed Published May 30, 2024 to the GitHub Advisory Database • Updated Jun 6, 2024

Package

npm mysql2 (npm)

Affected versions

< 3.9.8

Patched versions

3.9.8

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.

References

Published by the National Vulnerability Database May 29, 2024
Published to the GitHub Advisory Database May 30, 2024
Reviewed May 30, 2024
Last updated Jun 6, 2024

Severity

High
8.2
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Weaknesses

CVE ID

CVE-2024-21512

GHSA ID

GHSA-pmh2-wpjm-fj45

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.