Changelog - 2026-11-06
The health-check stats secret is compared in constant time
Security Bug FixIn one line. The check of stats.secretKey on GET /health/stats took a time that depended on how much of the supplied value was right. It uses Hash.equals now.
What changed
- Constant-time compare. The header value and the configured secret are compared with
Hash.equals. A missing or non-string header is refused. - Nothing else changes. An unset
secretKeystill leaves the route open, a blank one still refuses every request, and the header and status codes are the same.
Who is affected
Nobody needs to act.
Details
| File | Package |
|---|---|
src/components/health-check/reporter.ts | core-server |