Skip to content

fix(deps): Update dependency black to v24.3.0 [SECURITY] - autoclosed#17285

Closed
cq-bot wants to merge 1 commit intomainfrom
renovate/pypi-black-vulnerability
Closed

fix(deps): Update dependency black to v24.3.0 [SECURITY] - autoclosed#17285
cq-bot wants to merge 1 commit intomainfrom
renovate/pypi-black-vulnerability

Conversation

@cq-bot
Copy link
Copy Markdown
Contributor

@cq-bot cq-bot commented Mar 20, 2024

This PR contains the following updates:

Package Update Change
black (changelog) minor ==24.2.0 -> ==24.3.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2024-21503

Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.

Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.


Release Notes

psf/black (black)

v24.3.0

Compare Source

Highlights

This release is a milestone: it fixes Black's first CVE security vulnerability. If you
run Black on untrusted input, or if you habitually put thousands of leading tab
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
CVE-2024-21503.

This release also fixes a bug in Black's AST safety check that allowed Black to make
incorrect changes to certain f-strings that are valid in Python 3.12 and higher.

Stable style
  • Don't move comments along with delimiters, which could cause crashes (#​4248)
  • Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
    of Black would incorrectly format the contents of certain unusual f-strings containing
    nested strings with the same quote type. Now, Black will crash on such strings until
    support for the new f-string syntax is implemented. (#​4270)
  • Fix a bug where line-ranges exceeding the last code line would not work as expected
    (#​4273)
Performance
  • Fix catastrophic performance on docstrings that contain large numbers of leading tab
    characters. This fixes
    CVE-2024-21503.
    (#​4278)
Documentation
  • Note what happens when --check is used with --quiet (#​4236)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 has been generated by Renovate Bot.

@cq-bot cq-bot requested a review from a team March 20, 2024 17:09
@cq-bot cq-bot added automerge Automatically merge once required checks pass security labels Mar 20, 2024
@cq-bot cq-bot requested review from maaarcelino and removed request for a team March 20, 2024 17:09
@cq-bot cq-bot changed the title fix(deps): Update dependency black to v24.3.0 [SECURITY] fix(deps): Update dependency black to v24.3.0 [SECURITY] - autoclosed Mar 20, 2024
@cq-bot cq-bot closed this Mar 20, 2024
@cq-bot cq-bot deleted the renovate/pypi-black-vulnerability branch March 20, 2024 18:09
@cq-bot cq-bot changed the title fix(deps): Update dependency black to v24.3.0 [SECURITY] - autoclosed fix(deps): Update dependency black to v24.3.0 [SECURITY] Mar 20, 2024
@cq-bot cq-bot reopened this Mar 20, 2024
@cq-bot cq-bot restored the renovate/pypi-black-vulnerability branch March 20, 2024 19:09
@cq-bot cq-bot changed the title fix(deps): Update dependency black to v24.3.0 [SECURITY] fix(deps): Update dependency black to v24.3.0 [SECURITY] - autoclosed Mar 20, 2024
@cq-bot cq-bot closed this Mar 20, 2024
@cq-bot cq-bot deleted the renovate/pypi-black-vulnerability branch March 20, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/source/square automerge Automatically merge once required checks pass security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants