Skip to content

Security considerations

  • Transport security: TLS required outside loopback development.
  • Origin validation: servers MUST check Origin on WebSocket upgrades and WebTransport CONNECT requests to prevent cross-site hijacking, especially when cookies authenticate. A request without Origin comes from a non-browser client and is not subject to the allow-list (§4.1); refusals use the statuses of §4.1.
  • Credentials: only in HELLO/AUTH_REFRESH or cookies; never in URLs, never logged. Resume tokens are secrets with the same handling.
  • Unauthenticated exposure: before WELCOME the server sends nothing but WELCOME, REJECT or CLOSE. The handshake timeout, which runs until WELCOME or REJECT (§7.1), bounds resource use.
  • Resource limits: servers MUST bound header size, header nesting depth, frame size (max_frame), concurrent calls, lanes, datagram bindings, subscriptions, replay buffers and outbound queues, and MUST check lengths before allocating. Manifest readers, such as code generators reading a published manifest, MUST enforce the manifest’s size, type depth and name length limits (§12.2).
  • Parsers: varint, frame, CBOR and JSON decoders MUST be fuzzed (§17).
  • Channel and method authorization is per request; authorization at connect time alone is insufficient for channels and methods with finer-grained rules.
  • Error disclosure: internal error details are not sent to clients by default (§8.4).
  • Presence privacy: presence reveals who is subscribed; channel authorization must account for it. Session IDs appear in presence entries; they are public identifiers, never credentials (§7.2), and cannot be used to target or resume a session from the client side.
  • Rate limits (normative): per source address: handshakes and resume attempts. Per session: stream opens and CANCELs (§6.5), PINGs (§7.4), notifications, datagrams, control requests. Defaults in §16; every rate is a token bucket (§16). Every inbound datagram counts, including datagrams dropped as unbound or malformed (§11.2, §11.3). Frames retransmitted after resumption (§7.8) do not count against per-session rate limits. Exceeding a per-session limit closes with LIMIT_EXCEEDED; per-address limits reject at the transport layer with 429 (§4.1).
  • Replay: no frame from TLS/QUIC 0-RTT early data is processed (§4.1); resume tokens are single-use (§7.8).
  • Compression: none in v1 and permessage-deflate is not negotiated (§4.3). Any future compression MUST never compress credential-bearing frames (HELLO, AUTH_REFRESH) together with attacker-influenced data.
  • CBOR: headers contain no tags and MUST be rejected if they do; typed data accepts only declared tags (§12.3). Depth, size and length checks precede allocation everywhere.

From the specification: §14.