Skip to content

chore(deps): update dependency pymysql to <1.2.5 - #2557

Closed
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/pymysql-1.x
Closed

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/pymysql-1.x

Conversation

@renovate

@renovate renovate Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pymysql (changelog) <1.2.1 → <1.2.5 age confidence

Release Notes

PyMySQL/PyMySQL (pymysql)

v1.2.4

Compare Source

Release date: 2026-11-09

Fixed a SQL injection vulnerability caused by incorrect escaping of string values
inside tuple, list, set, or frozenset query parameters when the
NO_BACKSLASH_ESCAPES SQL mode is enabled.

Sequence items are now escaped through Connection.escape() so they respect
the connection's SQL mode.

See also: https://github.com/PyMySQL/PyMySQL/security/advisories/GHSA-m75w-33c4-7v8q

Other changes
  • ssl_verify_identity=True now requires server certificate verification,
    even when ssl_verify_cert=False. (#​1282)
  • Fix a missing return value in caching_sha2_password authentication. (#​1275)
  • Fix escaped percent signs in executemany() query postfixes, such as
    ON DUPLICATE KEY UPDATE clauses. (#​1276)
  • Require a decimal point before fractional seconds and reject trailing input
    when converting date/time values. (#​1280)
  • Add MUST_CHANGE_PASSWORD and MUST_CHANGE_PASSWORD_LOGIN error codes. (#​1278)
  • Deprecate pymysql.converters.escape_sequence(). Use Connection.escape()
    instead. The default converter mapping no longer supports tuple, list,
    set, or frozenset.

v1.2.3

Compare Source

Release date: 2026-09-17

Restored the ability to import pymysql.converters.escape_bytes_prefixed for
compatibility with aiomysql.

Use pymysql.converters at your own risk.
It's internal functions. No backward compatibility are guaranteed.

v1.2.2

Compare Source

Release date: 2026-09-17

Restored the ability to import pymysql.converters.escape_dict for
compatibility 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.1

Compare Source

Release date: 2026-09-17

Fixed a SQL injection vulnerability caused by incorrect escaping of bytes
parameters when using the big5, gbk, sjis, cp932, or gb18030 character sets.
This vulnerability also occurs when strings decoded from bytes using
surrogateescape are passed as query parameters.

See also: https://github.com/PyMySQL/PyMySQL/security/advisories/GHSA-x4f8-9hx9-hpp9

  • Queries are now encoded using the strict error handler instead of
    surrogateescape.
    Queries that cannot be encoded using the connection encoding can no longer be sent.

  • bytes parameters are now always sent as hexadecimal literals, such as
    X'636174'. Note that this increases the number of bytes sent.

  • The binary_prefix parameter of connect() is deprecated. The _binary
    prefix 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)

  • Branch creation
    • Between 12:00 AM and 05:59 AM, only on Tuesday (* 0-5 * * 2)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.31%. Comparing base (0f224b2) to head (3b112a1).

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           
Flag Coverage Δ
integration 76.64% <ø> (-0.01%) ⬇️
unit 85.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek closed this Dec 1, 2026
@renovate

renovate Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (<1.2.5). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate
renovate Bot deleted the renovate/pymysql-1.x branch December 1, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant