Intel

AIKIDO-2024-10019

mysql2 is vulnerable to Prototype Poisoning

Prototype PoisoningCVE-2024-21509 Published Apr 10, 2024

65

Medium Risk

This Affects:

JSmysql2
0.0.1 - 3.9.3
Fixed in 3.9.4
Are you affected? Scan for Free

TL;DR

Versions of the mysql2 package prior to 3.9.4 are vulnerable to prototype poisoning due to insecure creation of the results object and improper sanitization of user input passed through the parserFn in text_parser.js and binary_parser.js.

Who does this affect?

You are affected if you are using a version of this package = 3.9.3.

Background info

mysql2 is vulnerable to Prototype Poisoning in versions 0.0.1 - 3.9.3.

How to fix this

Upgrade the mysql2 library to the patch version.