Files
CLIProxyAPI/internal/api/middleware
Luis Pater ad8bdd3f20 fix(middleware): bound zstd decompression output and window in request logging
- Cap captured request body zstd decompression to max-request-body-bytes or 32 MiB when no smaller limit is configured, and remove the unbounded decode helpers.
- Restrict the request-log zstd decoder to concurrency 1 and an 8 MiB maximum window so frames declaring oversized windows fall back to logging raw bytes.
- Add regression tests covering unconfigured limits, single-segment window bombs, and oversized zstd windows.

Closes: GHSA-4w5v-m7vx-jpmh
2026-10-27 23:23:26 +08:00
..