Packages
Ruff 0.17.4–0.17.6: Rust `zip` 9 Security Patches, `ty 0.0.99`, and Python 3.15 Wheel Guide
Technical breakdown of Ruff 0.17.4 through 0.17.6 (Nov 2026, MIT, 900+ rules): Rust zip 9 dependency update resolving RUSTSEC-2026-0367/0368/0369, companion ty 0.0.99 type checker, Python 3.15 compatibility, and pre-commit/uvx pinning steps.
8 min read
Ruff 0.17.4–0.17.6: Rust zip 9 Security Patches, ty 0.0.99, and Python 3.15 Wheel Guide
Executive Summary
Ruff (ruff on PyPI, MIT license), Astral's Rust-implemented Python linter and formatter featuring 900+ built-in rules, reached 0.17.6 on November 19, 2026 (verified as of December 3, 2026), following 0.17.5 on November 12, 2026 and the 0.17.4 downstream security rebuild published by Fedora on November 23, 2026. Designed to replace Flake8 (plus dozens of plugins), Black, isort, pydocstyle, autoflake, and pyupgrade at 10–100x faster execution speeds, Ruff 0.17.x also ships full Python 3.15 compatibility and pairs with Astral's Rust type checker ty (0.0.99).
Beyond linting throughput, the 0.17.4–0.17.6 cycle carries an important Rust supply-chain milestone documented in LWN.net / Fedora Advisory FEDORA-2026-857a425cbf: updating the underlying Rust zip crate to version 9 to remediate three archive-extraction advisories (RUSTSEC-2026-0367, RUSTSEC-2026-0368, and RUSTSEC-2026-0369). Teams running Ruff in CI/CD pipelines, GitHub Actions (astral-sh/ruff-action@v3), or ruff-pre-commit should pin 0.17.6 and verify GitHub artifact attestations where PyPI wheel provenance is absent.
Confidence Assessment: High for PyPI 0.17.6 release metadata (Nov 19, 2026), GitHub README/installer details, Fedora FEDORA-2026-857a425cbf (Nov 23, 2026), and RustSec zip advisories. Medium for exact monthly PyPI download totals for ruff, as PyPI's public snippet omits the raw monthly counter and conda-forge's tracker shows 0 for its beta counter.
Adoption Telemetry & Version Changelog
PyPI, Conda-Forge & Ecosystem Telemetry (Verified December 3, 2026)
| Metric | Verified Value | Source & Verification Date |
|---|---|---|
| Package & Ecosystem | ruff (PyPI, conda-forge, MIT license) |
PyPI / Anaconda (Dec 3, 2026) |
| Latest Version | 0.17.6 (Released Nov 19, 2026) |
PyPI ruff / GitHub |
| Rule Coverage & Speed | 900+ built-in rules · 10–100x faster than Flake8/Black |
GitHub astral-sh/ruff |
| Co-Installed Tools | mypy (60%), pre-commit (57%), black (54%) |
Anaconda conda-forge/ruff |
| Platform Wheel Coverage | 15+ targets (Linux glibc/musl, RISC-V 64, ARM64/x86_64, macOS, Windows) |
PyPI ruff |
Recent Release Milestones (0.17.4 – 0.17.6)
0.17.4& FedoraFEDORA-2026-857a425cbf(Nov 23, 2026): Pairedruff 0.17.4withty 0.0.99,pyo3-introspection 0.30.1,maturin 1.16.0,python-jiter 0.19.0,serde_json 1.0.154(addingpreserve_orderinno_stdbuilds and reporting invalid UTF-8 at the first bad byte), and upgraded the Rustzipcrate to v9.0.17.5(Nov 12, 2026): Published cross-platform installers (ruff-installer.sh/ruff-installer.ps1) and GitHub Artifact Attestations verifiable viagh attestation verify.0.17.6(Nov 19, 2026): Current PyPI andconda-forgerelease (10.0–11.4 MBbinary wheels across x86_64, ARM64, RISC-V 64, PowerPC 64-le, and IBM s390x), aligninguvx ruff@0.17.6andruff-pre-commitv0.17.6.
Security Patches, Breaking Changes & Internals
Rust zip v9 Security Fixes (RUSTSEC-2026-0367, -0368, -0369)
Because Ruff and its companion Rust/Python build toolchain (maturin, ty) are compiled Rust binaries, vulnerabilities in transitive Cargo crates propagate into developer workstations and CI runners. According to the RustSec Advisory Database, CIRCL Vulnerability-Lookup, and GridCraft's zip 9 migration audit:
RUSTSEC-2026-0367(GHSA-vv5m-jxxh-4627, CVSS 3.17.3High): Insecure preservation ofSUID/SGIDpermission bits during ZIP extraction (zip < 9.0.0), enabling potential local privilege escalation.RUSTSEC-2026-0368: Flaw inZipArchive::extract()resolved alongside-0367and-0369inzip >= 9.0.0.RUSTSEC-2026-0369(CRITICAL):ZipStreamReader::extract()andZipArchive::extract()applied Unix permissions through symlinks without confining the target (zip < 9.0.0).
Upgrading to zip 9 (9.0.0+) also introduced a Rust API change where name_for_index() / entry names return a Result so malformed entry names are rejected explicitly rather than silently skipped.
Companion Crate Updates (maturin 1.16.0, serde_json 1.0.154, zip 9)
The November 23, 2026 Fedora 43 security rebuild illustrates how tightly Python's Rust-backed developer toolchain shares transitive dependencies. Alongside ruff 0.17.4 and ty 0.0.99, the update shipped pyo3-introspection 0.30.1, maturin 1.16.0, python-jiter 0.19.0, and serde_json 1.0.154 (which adds preserve_order support in no_std builds and reports invalid UTF-8 at the exact first bad byte). As documented in GridCraft's zip 9 audit, moving from zip 3 to zip 9.0.5 also drops arbitrary and derive_arbitrary while introducing typed-path 0.12.4 (plus nix 0.31.3 scoped to macOS and BSD targets).
Supply-Chain Provenance Caveat on PyPI vs. GitHub
A subtle supply-chain detail worth flagging for security-conscious teams: on PyPI's ruff 0.17.6 release files tab, all 0.17.6 wheels currently show Without provenance, whereas Astral's standalone GitHub releases (0.17.5+) publish GitHub Artifact Attestations that can be verified cryptographically with:
curl --proto '=https' --tlsv1.2 -LsSf \
https://releases.astral.sh/github/ruff/releases/download/0.17.5/ruff-installer.sh | sh
gh attestation verify <downloaded-ruff-artifact> --bundle <downloaded-attestation>
Meanwhile, experimental third-party bindings such as ruff-api (0.2.1) ship PyPI provenance including CPython 3.14 free-threading (cp314t) wheels, though ruff-api remains 4 - Beta and is maintained independently of Astral's official CLI.
Architecture: Pyright Import Resolution & ty Integration
Ruff's internal architecture explains why it has largely displaced multi-tool Flake8/Black stacks:
- Pyright-Based Import Resolver: Ruff's module resolution algorithm is modeled on Pyright, enabling accurate cross-file import sorting (
isortparity) and unused-import autofixes (ruff check --fix). - Companion Type Checker (
ty 0.0.99): Astral pairs Ruff withty(0.0.99in Fedora 43's rebuild), moving toward a unified Rust-native lint, format, and type-check workflow alongsideuv. - Monorepo Cascading Config: Ruff reads hierarchical
pyproject.toml/ruff.tomlfiles without invoking Python interpreters per rule, keeping full-repo scans around~0.2swhere legacy tools took~20s(perisortcreator Timothy Crosley's benchmark quoted in the Ruff README).
Updated CI & Pre-Commit Configuration (0.17.6)
# .pre-commit-config.yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.6
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
For GitHub Actions, pair actions/checkout@v4 with astral-sh/ruff-action@v3 or run uvx ruff@0.17.6 check and uvx ruff@0.17.6 format --check to guarantee identical behavior between local developer laptops and CI runners.
Ecosystem Comparison & Upgrade Checklist
Python Linting, Formatting & Type-Checking Stack (Verified December 2026)
| Tool / Package | Language & License | Scope | Key Trade-Offs |
|---|---|---|---|
ruff (0.17.6) |
Rust · MIT |
900+ lint rules + formatter + isort + pyupgrade |
10–100x faster; 0.17.6 PyPI wheels lack PyPI provenance (use GitHub attestations if required) |
ty (0.0.99) |
Rust (Astral) | Static type checking | Fast Astral companion to ruff; still pre-1.0 (0.0.x) compared to mypy |
flake8 + black + isort |
Python | Modular linting, formatting, import sorting | Huge plugin ecosystem, but 10–100x slower and requires coordinating multiple configs |
mypy |
Python / mypyc | Mature static type checking (60% co-install rate on conda-forge) |
Broadest plugin support (Django, Pydantic), slower cold runs than Rust checkers |
Production Adoption & Incremental Migration Patterns
According to PyPI's Ruff documentation, major Python and AI infrastructure projects—including FastAPI, Pydantic, Polars, pandas, Apache Airflow, Jupyter, and pyca/cryptography—rely on Ruff in CI. Teams migrating legacy repositories with thousands of existing Flake8 warnings can adopt Ruff incrementally without blocking pull requests:
- Scoped Ignores: Use
--config "lint.per-file-ignores = {'legacy_module.py' = ['F841']}"to enforce strict rules on new AI/backend modules while quarantining legacy files. - Argument-File Batching: Pass
ruff check @arguments.txtin large monorepos to keep CI shell invocations deterministic and under OS command-line length limits. - Autofix Discipline: Run
ruff check --fixlocally in pre-commit, but keep CI read-only (ruff checkandruff format --check) so CI fails loudly on unformatted PRs instead of silently mutating build artifacts.
GitHub Actions Integration: ruff-action@v3 vs. uvx
For CI pipelines on GitHub Actions, Astral's repository documents two clean deployment patterns:
- Action-Managed (
astral-sh/ruff-action@v3): Ideal when you want a zero-setup workflow step (uses: actions/checkout@v4followed byuses: astral-sh/ruff-action@v3) with automatic binary caching. - Lockfile-Pinned (
uvx ruff@0.17.6): Preferred when your repository already usesuvfor Python dependency management and you want local developer workstations, pre-commit hooks, and GitHub Actions runners to execute the exact same0.17.6binary without drift. Locally, pair either workflow with Astral's first-party VS Code extension andruff help check/ruff help formatfor rule inspection.
Safe Upgrade & Pinning Checklist
- Pin Exact
0.17.6Across All Entry Points: Because formatting rules and preview lints can shift between minor0.xreleases, align your localpyproject.toml,.pre-commit-config.yaml(rev: v0.17.6), and CIuvx ruff@0.17.6invocations. - Upgrade via
uvorpip:uv add --dev "ruff==0.17.6" # Or run ephemerally without adding to project deps: uvx ruff@0.17.6 check - Audit Linux Distro / Container Packages: On Fedora 43 or container images compiling Rust Python tools from source, verify
ruff >= 0.17.4-1andzip >= 9.0.0soRUSTSEC-2026-0367,-0368, and-0369are absent fromcargo audit/cargo denyscans. - Separate Preview Rules from Stable Rules: Keep
preview = falsein[tool.ruff.lint]unless you intentionally opt into unstable rules that may change before stabilization.
Frequently Asked Questions
1. What is the latest version of Ruff on PyPI in December 2026?
The latest PyPI and conda-forge release is 0.17.6 (published November 19, 2026), supporting Python 3.15 and shipping 15+ prebuilt platform wheels under the MIT license.
2. Why did Fedora rebuild Ruff 0.17.4 with zip crate version 9?
Fedora Advisory FEDORA-2026-857a425cbf (November 23, 2026) updated ruff to 0.17.4 alongside ty 0.0.99, maturin 1.16.0, and zip v9 to patch RUSTSEC-2026-0367 (SUID/SGID bit preservation, CVSS 7.3), RUSTSEC-2026-0368, and RUSTSEC-2026-0369 (CRITICAL symlink permission traversal).
3. Does ruff 0.17.6 replace mypy or ty?
No. Ruff replaces Flake8, Black, isort, pydocstyle, autoflake, and pyupgrade, but it is a linter and formatter rather than a full type checker. Teams pair Ruff with mypy (co-installed by 60% of conda-forge Ruff users) or Astral's ty (0.0.99), though ty remains pre-1.0 compared to mypy's mature plugin ecosystem.
4. Do ruff 0.17.6 wheels on PyPI include digital provenance?
PyPI's file listing for ruff 0.17.6 marks its wheels as Without provenance, whereas Astral's GitHub release binaries (0.17.5+) include GitHub Artifact Attestations verifiable with gh attestation verify.
5. Can I run Ruff without installing it globally?
Yes. With uv, run uvx ruff@0.17.6 check or uvx ruff@0.17.6 format directly in any directory, or add astral-sh/ruff-pre-commit (rev: v0.17.6) to .pre-commit-config.yaml.
Sources
- PyPI (
ruff) — ruff 0.17.6 Package Metadata & Release Files (https://pypi.org/project/ruff/) — Released Nov 19, 2026 (accessed Dec 3, 2026). - GitHub (
astral-sh/ruff) — Ruff Repository & Releases (0.17.4–0.17.6) (https://github.com/astral-sh/ruffandhttps://github.com/astral-sh/ruff/releases) — Accessed Dec 3, 2026. - LWN.net / Fedora Security — Fedora alert
FEDORA-2026-857a425cbf:ruff-0.17.4-1.fc43&ty 0.0.99(https://lwn.net/Articles/1109069/) — Published Nov 23, 2026. - RustSec Advisory Database & CIRCL —
RUSTSEC-2026-0367,-0368,-0369(zipcrate) (https://rustsec.org/advisories/andhttps://vulnerability.circl.lu/vuln/rustsec-2026-0367) — Published Oct 9–17, 2026. - Anaconda (
conda-forge/ruff) —ruffPackage Metadata & Co-Installed Tools (https://anaconda.org/conda-forge/ruff) — Updated Nov 19, 2026. - GitHub (
storytold/gridcraft#2135) —zip 3tozip 9.0.5Migration & API Diff Notes (https://github.com/storytold/gridcraft/issues/2135) — Published Oct 21, 2026. - PyPI (
ruffArchive &ruff-api) — Ruff Production Adopters &ruff-api 0.2.1(https://pypi.org/project/ruff/0.0.221/andhttps://pypi.org/project/ruff-api/) — Accessed Dec 3, 2026.