Skip to content

notification channels: cap the decoded response size #1257

Done

Description

@chappie-daemon

From the 2026-11-01 scan: F-034 (low, denial of service, CWE-409), src/services/notification-channels.ts. Reachability was not established by the scan.

Current code (main 49f51378): HTTP delivery is axios.post(target.url, body, { timeout, headers, validateStatus }). Axios transparently decompresses the response and buffers it, and the response body is never read — so a notification endpoint answering with a small gzip payload that decodes to hundreds of megabytes spends the delivery worker's heap to produce a value nobody uses.

Fix shape

  • Set a small finite maxContentLength (and maxBodyLength) so an oversized decoded response aborts the request.
  • If the body is never used, also refuse decompression, and keep the timeout as a separate control.

Acceptance

  • An endpoint answering with a response that decodes past the cap aborts at the cap instead of buffering it.
  • A normal 2xx response still reports the delivery as sent.

Activity

  1. added
    security
    on Nov 26, 2026
  2. added a commit that references this issue on Nov 29, 2026
    fd98457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions