Repository navigation
chore(deps): update dependency pymysql to <1.2.5 - #2557
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2557 +/- ##
=======================================
Coverage 94.31% 94.31%
=======================================
Files 184 184
Lines 13781 13781
=======================================
Hits 12997 12997
Misses 784 784
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update ( If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
<1.2.1→<1.2.5Release Notes
PyMySQL/PyMySQL (pymysql)
v1.2.4Compare Source
Release date: 2026-11-09
Fixed a SQL injection vulnerability caused by incorrect escaping of string values
inside
tuple,list,set, orfrozensetquery parameters when theNO_BACKSLASH_ESCAPESSQL mode is enabled.Sequence items are now escaped through
Connection.escape()so they respectthe connection's SQL mode.
See also: https://github.com/PyMySQL/PyMySQL/security/advisories/GHSA-m75w-33c4-7v8q
Other changes
ssl_verify_identity=Truenow requires server certificate verification,even when
ssl_verify_cert=False. (#1282)caching_sha2_passwordauthentication. (#1275)executemany()query postfixes, such asON DUPLICATE KEY UPDATEclauses. (#1276)when converting date/time values. (#1280)
MUST_CHANGE_PASSWORDandMUST_CHANGE_PASSWORD_LOGINerror codes. (#1278)pymysql.converters.escape_sequence(). UseConnection.escape()instead. The default converter mapping no longer supports
tuple,list,set, orfrozenset.v1.2.3Compare Source
Release date: 2026-09-17
Restored the ability to import
pymysql.converters.escape_bytes_prefixedforcompatibility with aiomysql.
Use
pymysql.convertersat your own risk.It's internal functions. No backward compatibility are guaranteed.
v1.2.2Compare Source
Release date: 2026-09-17
Restored the ability to import
pymysql.converters.escape_dictforcompatibility with aiomysql.
This function does not escape dictionaries and is entirely unnecessary.
Unless you use aiomysql, there is no need to upgrade from v1.2.1.
v1.2.1Compare Source
Release date: 2026-09-17
Fixed a SQL injection vulnerability caused by incorrect escaping of
bytesparameters when using the big5, gbk, sjis, cp932, or gb18030 character sets.
This vulnerability also occurs when strings decoded from
bytesusingsurrogateescapeare passed as query parameters.See also: https://github.com/PyMySQL/PyMySQL/security/advisories/GHSA-x4f8-9hx9-hpp9
Queries are now encoded using the
stricterror handler instead ofsurrogateescape.Queries that cannot be encoded using the connection encoding can no longer be sent.
bytesparameters are now always sent as hexadecimal literals, such asX'636174'. Note that this increases the number of bytes sent.The
binary_prefixparameter ofconnect()is deprecated. The_binaryprefix is no longer sent.
These changes address the confirmed SQL injection vulnerabilities related to
character encoding.
However, we strongly recommend using UTF-8 (
utf8mb4).Other character sets are not thoroughly tested, and their limited use means
that problems may go unreported. In the 2020s, encodings other than UTF-8
should be considered legacy.
Configuration
📅 Schedule: (UTC)
* 0-5 * * 2)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.