Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
High 9.1

mysql2にSQLインジェクション脆弱性、3.25.0で修正

CVE-2026-139877 First seen on SecPulse

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

PackageAffected → Fixed
sidoraresmysql2
< 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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details