Uvicorn

Latest version: v0.34.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 13

0.23.1

Fixed

- Add `typing_extensions` for Python 3.10 and lower (2053)

0.23.0

Added

- Add `--ws-max-queue` parameter WebSockets (2033)

Removed

- Drop support for Python 3.7 (1996)
- Remove `asgiref` as typing dependency (1999)

Fixed

- Set `scope["scheme"]` to `ws` or `wss` instead of `http` or `https` on `ProxyHeadersMiddleware` for WebSockets (2043)

Changed

- Raise `ImportError` on circular import (2040)
- Use `logger.getEffectiveLevel()` instead of `logger.level` to check if log level is `TRACE` (1966)

0.22.0

Added

- Add `--timeout-graceful-shutdown` parameter (1950)
- Handle `SIGBREAK` on Windows (1909)

Fixed

- Shutdown event is now being triggered on Windows when using hot reload (1584)
- `--reload-delay` is effectively used on the `watchfiles` reloader (1930)

0.21.1

Fixed

- Reset lifespan state on each request (1903)

0.21.0

Added

- Introduce lifespan state (1818)
- Allow headers to be sent as iterables on H11 implementation (1782)
- Improve discoverability when --port=0 is used (1890)

Changed

- Avoid importing `h11` and `pyyaml` when not needed to improve import time (1846)
- Replace current native `WSGIMiddleware` implementation by `a2wsgi` (1825)
- Change default `--app-dir` from "." (dot) to "" (empty string) (1835)

Fixed

- Send code 1012 on shutdown for WebSockets (1816)
- Use `surrogateescape` to encode headers on `websockets` implementation (1005)
- Fix warning message on reload failure (1784)

0.20.0

Added

- Check if handshake is completed before sending frame on `wsproto` shutdown (1737)
- Add default headers to WebSockets implementations (1606 & 1747)
- Warn user when `reload` and `workers` flag are used together (1731)

Fixed

- Use correct `WebSocket` error codes on `close` (1753)
- Send disconnect event on connection lost for `wsproto` (996)
- Add `SIGQUIT` handler to `UvicornWorker` (1710)
- Fix crash on exist with "--uds" if socket doesn't exist (1725)
- Annotate `CONFIG_KWARGS` in `UvicornWorker` class (1746)

Removed

- Remove conditional on `RemoteProtocolError.event_hint` on `wsproto` (1486)
- Remove unused `handle_no_connect` on `wsproto` implementation (1759)

Page 5 of 13

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.