VDB
Sign up
CRITICAL9.8

GHSA-fpw7-j2hg-69v5

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Quick fix

GHSA-fpw7-j2hg-69v5 — mysql2: upgrade to the fixed version with the command below.

npm install mysql2@3.9.4

Details

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the `readCodeFor` function due to improper validation of the `supportBigNumbers` and `bigNumberStrings` values.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/mysql2
Introduced in: 0Fixed in: 3.9.4
Fixnpm install mysql2@3.9.4

References