fix: bump black and django to resolve dependabot security alerts#109
Open
jonathannorris wants to merge 2 commits intomainfrom
Open
fix: bump black and django to resolve dependabot security alerts#109jonathannorris wants to merge 2 commits intomainfrom
jonathannorris wants to merge 2 commits intomainfrom
Conversation
black>=26.3.1 requires Python 3.10+, but unit tests run on 3.9. Move black, mypy, and ruff into a separate requirements.lint.txt used only by the lint workflow (Python 3.12).
There was a problem hiding this comment.
Pull request overview
Updates Python dependency pins to address Dependabot-reported security vulnerabilities in the repo’s formatting/tooling and the example Django app.
Changes:
- Bump
blackinrequirements.test.txtto~=26.3.1. - Bump
djangominimum in the example app to>=4.2.29.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| requirements.test.txt | Updates the formatter version used by CI/dev tooling to remediate a reported Black CVE. |
| example/django-app/requirements.txt | Raises the example app’s Django minimum version to include patched releases for reported CVEs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
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.
Summary
blackfrom~=25.1.0to~=26.3.1to fix CVE-2026-32274 (arbitrary file writes from unsanitized cache file name)djangominimum from>= 4.2to>= 4.2.29to fix CVE-2026-25673 (uncontrolled resource consumption) and CVE-2026-25674 (race condition)black,mypy,ruff) into a newrequirements.lint.txtsinceblack >= 26.3.1requires Python 3.10+ and unit tests run on 3.9Resolves all 3 open Dependabot alerts.
Changes
requirements.test.txtrequirements.lint.txt.github/workflows/lint.ymlrequirements.lint.txtinstead ofrequirements.test.txtexample/django-app/requirements.txtdjango >= 4.2to>= 4.2.29