Advisory

PYSEC-2026-3510

Details, part 2 of 2. The advisory

Details

  1. Refuse to start LinearBot when LINEAR_WEBHOOK_SECRET is missing, unless an explicit development-only option such as --insecure-skip-webhook-signature-verification is provided.
  2. In _handle_webhook(), reject requests when no signing secret is configured instead of silently skipping verification.
  3. Preserve raw-body HMAC verification and constant-time comparison for the configured-secret path.
  4. Treat timestamp freshness as replay protection after signature validation, not as a replacement for authentication.
  5. Prefer loopback binding by default, or require an explicit host flag for public binding.
  6. Add regression tests:
  • no signing secret rejects startup or rejects webhook requests;
  • missing signature with a configured secret returns 401;
  • invalid signature with a configured secret returns 401;
  • valid HMAC with a configured secret returns success;
  • stale timestamp after valid HMAC returns 401;
  • the CLI does not advertise a public unauthenticated webhook by default.

Sources & licences