GitHub advisory · npm
MySQL2 for Node Arbitrary Code Injection
Description
Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.
Manual fix · npm
npm install mysql2@3.9.7Sources