Skip to content

chore(deps): update dependency sqlparse to v0.5.4 [security] - autoclosed#16833

Closed
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/pypi-sqlparse-vulnerability
Closed

chore(deps): update dependency sqlparse to v0.5.4 [security] - autoclosed#16833
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/pypi-sqlparse-vulnerability

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

@renovate-bot renovate-bot commented Apr 27, 2026

This PR contains the following updates:

Package Change Age Confidence
sqlparse (changelog) ==0.5.3==0.5.4 age confidence

sqlparse: formatting list of tuples leads to denial of service

GHSA-27jp-wm6q-gp25

More information

Details

Summary

The below gist hangs while attempting to format a long list of tuples.

This was found while drafting a regression test for Dja
ngo 5.2's composite primary key feature
, which allows querying composite fields with tuples.

Severity

  • CVSS Score: 6.9 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

andialbrecht/sqlparse (sqlparse)

v0.5.4

Compare Source

Enhancements

  • Add support for Python 3.14.
  • Add type annotations to top-level API functions and include py.typed marker
    for PEP 561 compliance, enabling type checking with mypy and other tools
    (issue756).
  • Add pre-commit hook support. sqlparse can now be used as a pre-commit hook
    to automatically format SQL files. The CLI now supports multiple files and
    an --in-place flag for in-place editing (issue537).
  • Add ATTACH and DETACH to PostgreSQL keywords (pr808).
  • Add INTERSECT to close keywords in WHERE clause (pr820).
  • Support REGEXP BINARY comparison operator (pr817).

Bug Fixes

  • Add additional protection against denial of service attacks when parsing
    very large lists of tuples. This enhances the existing recursion protections
    with configurable limits for token processing to prevent DoS through
    algorithmic complexity attacks. The new limits (MAX_GROUPING_DEPTH=100,
    MAX_GROUPING_TOKENS=10000) can be adjusted or disabled (by setting to None)
    if needed for legitimate large SQL statements.
  • Remove shebang from cli.py and remove executable flag (pr818).
  • Fix strip_comments not removing all comments when input contains only
    comments (issue801, pr803 by stropysh).
  • Fix splitting statements with IF EXISTS/IF NOT EXISTS inside BEGIN...END
    blocks (issue812).
  • Fix splitting on semicolons inside BEGIN...END blocks (issue809).

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • 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.

@renovate-bot renovate-bot requested a review from a team as a code owner April 27, 2026 23:00
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the sqlparse dependency in packages/sqlalchemy-spanner/requirements.txt from version 0.5.3 to 0.5.4, including the corresponding hash updates. I have no feedback to provide.

@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2026
@renovate-bot renovate-bot changed the title chore(deps): update dependency sqlparse to v0.5.4 [security] chore(deps): update dependency sqlparse to v0.5.4 [security] - autoclosed Apr 27, 2026
@renovate-bot renovate-bot deleted the renovate/pypi-sqlparse-vulnerability branch April 27, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants