axum-extra-v0.12.6
QwenLM/Qwen3-ASRaxum-extra-v0.12.6Apr 14, 2026by yanns
AI Summary
This release focuses on security and stability, fixing a header injection vulnerability in file attachments and enforcing stricter syntax for the `vpath!` macro.
Key Highlights
- Fixes header injection vulnerability in `Content-Disposition` filenames
- `vpath!` macro now enforces `{var}` syntax instead of deprecated `:var`
- Returns specific error messages for multipart body limit errors
Breaking Changes
- The `vpath!` macro now stops compilation for paths using deprecated variables like `:var` or `*var`
Full Release Notes
- **fixed:** Escape backslashes and double quotes in `Content-Disposition` filenames to prevent header parameter injection in `Attachment` and `FileStream` ([#3664])
- `vpath!` macro now stops the compilation if your path is using deprecated path variables in the old `107` format, such as `:var` and `*var`. the only allowed way now is `{var}`. ([#3618])
- **fixed:** Return specific error message when multipart body limit is exceeded ([#3611])
[#3664]: https://github.com/tokio-rs/axum/pull/3664
[#3618]: https://github.com/tokio-rs/axum/pull/3618
[#3611]: https://github.com/tokio-rs/axum/pull/3611