Skip to content

fix: bump black to 26.3.1 (arbitrary file write via cache filename) - #48

Open
ajaiswal-qsi-strand wants to merge 1 commit into
4Catalyzer:masterfrom
ajaiswal-qsi-strand:fix/bump-black-cve
Open

fix: bump black to 26.3.1 (arbitrary file write via cache filename)#48
ajaiswal-qsi-strand wants to merge 1 commit into
4Catalyzer:masterfrom
ajaiswal-qsi-strand:fix/bump-black-cve

Conversation

@ajaiswal-qsi-strand

Copy link
Copy Markdown

fix: bump black to 26.3.1 (arbitrary file write via cache filename)

Summary

Bumps the pinned black from 25.1.0 to 26.3.1 to address a security vulnerability, and releases as 2.0.1.

Why

black versions < 26.3.1 are vulnerable to arbitrary file writes from unsanitized user input in the cache file name (GHSA / Dependabot high-severity advisory). Since fourmat pins black with an exact version (black==25.1.0), downstream consumers cannot upgrade black without updating fourmat.

Changes

  • setup.py: black==25.1.0black==26.3.1
  • setup.py: version 2.0.02.0.1

Testing

  • fourmat check — exit 0 (self-lint passes with black 26.3.1)
  • pytest test/ — 5 passed
  • black --version → 26.3.1

Note: running fourmat check on Python 3.10 emits black's standard AST safety-check warning (config targets py312); this is environment-related and non-fatal (exit 0). CI's tox matrix runs py310/311/312 separately.

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.

1 participant