mysql2にSQLインジェクション脆弱性、3.25.0で修正
Summary
Node.jsのMySQLドライバーmysql2の3.24.6以前に、サーバーがNO_BACKSLASH_ESCAPESモードのときSQLインジェクションを許す脆弱性が公表されました。mysql2を3.25.0に更新し、自社のMySQLのsql_modeも確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Node.jsのMySQLドライバーmysql2の3.24.6以前に、サーバーがNO_BACKSLASH_ESCAPESモードのときSQLインジェクションを許す脆弱性が公表されました。mysql2を3.25.0に更新し、自社のMySQLのsql_modeも確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sidoraresmysql2 |
< 3.25.0→ 3.25.0 |
3.25.0 |
Original description The description as published by the source.
mysql2 before 3.25.0 contains an sql injection vulnerability in Connection.format() and Connection.escape() because quotes are always backslash-escaped regardless of session SQL mode. When NO_BACKSLASH_ESCAPES is enabled, attackers can pass crafted values through ? placeholders in connection.query() to close string literals and append SQL, disclosing or modifying data.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com