Man in The Middle (MiTM) Affecting mysql2 package, versions <1.0.0-rc.1



    Attack Complexity High
    Confidentiality High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-MYSQL2-536208
  • published 28 Nov 2019
  • disclosed 14 May 2014
  • credit Unknown

Introduced: 14 May 2014

CVE NOT AVAILABLE CWE-300 Open this link in a new tab

How to fix?

Upgrade mysql2 to version 1.0.0-rc.1 or higher.


mysql2 is a mostly API compatible with mysqljs and supports majority of features.

Affected versions of this package are vulnerable to Man in The Middle (MiTM). The package does not verify remote certificates and reject unauthorized SSL connections.