mysql2

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Licenses: MIT

Package Health Score

86/100
  • securityNo known security issues
  • popularityKey ecosystem project
  • maintenanceHealthy
  • communitySustainable

Maintenance

HEALTHY

Commit Frequency

Loading chart...

Open Issues
423
Open PR
37
New PRS
0
Last Release
7 hours ago
Last Commit
1 months ago
Maintainers
1

Further analysis of the maintenance status of mysql2 based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Healthy.

We found that mysql2 demonstrates a positive version release cadence with at least one new version released in the past 3 months.

In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.

Popularity

KEY ECOSYSTEM PROJECT
Weekly downloads (12.7M)
GitHub Stars
4.4k
Forks
671
Contributors
0

The npm package mysql2 receives a total of 12,681,296 downloads a week. As such, we scored mysql2 popularity level to be Key ecosystem project.

Based on project statistics from the GitHub repository for the npm package mysql2, we found that it has been starred 4,371 times.

Downloads are calculated as moving averages for a period of the last 12 months, excluding weekends and known missing data points.

Community

SUSTAINABLE
Readme.md
Yes
Contributing.md
Yes
Code of Conduct
Yes
Contributors
0
Funding
Yes
LICENSE
MIT

This project has seen only 10 or less contributors.

License

MIT>=0;

Direct Vulnerabilities

Known vulnerabilities in the mysql2 package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free

Security

NO KNOWN SECURITY ISSUES
Show only direct vulnerabilities in latest version
No vulnerabilities found

No vulnerabilities found in the latest version

There are 6 total vulnerabilities, but none affect the latest version (3.24.2)

Package versions

319 VERSIONS IN TOTAL See all versions
versionpublisheddirect vulnerabilities
3.24.224 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.2-canary.de5627224 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.2-canary.87579e124 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.2-canary.1dcd8ef24 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.124 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.1-canary.183e94724 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.24.023 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.23.5-canary.f3a60bc23 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.23.5-canary.c86fe5a23 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
3.23.5-canary.8ec20f123 Aug, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L