Skip to content

[BUG][Medium]- Public docs chat requests can consume the server held Mixedbread key #97

Open

Description

@arthurianresolve

Summary

The documentation chat widget points to a Worker endpoint. The Worker validates request method and message size, then forwards every accepted request to Mixedbread using its server held MXBAI_API_KEY, potentially making a second upstream call on failure. If deployed with a valid key, repeated public requests can consume hosted search or model quota without caller level limits.

Affected code

Suggested resolution

  • Add a per caller request, concurrency, and aggregate spending limit at the Worker boundary, or require authorization for the chat endpoint.
  • Return a controlled limit response before sending to Mixedbread; account for retries in the same budget.

Acceptance criteria

  • Repeated requests from one caller are bounded before upstream calls occur.
  • Normal documentation chat remains available within the configured quota.

Validation performed

Static source review of upstream main at 72b247e2bddc7337f923461fb27b4127c7d104f3. No runtime exploit or deployed service test was performed.

Tracking

  • Finding ID: csf_ff61a3954de7eb3a74d09aa5
  • Fingerprint: codex-security/v1:sha256:6dfe037717696ee46a899100c1f6c073892a9e6b08a6ba791c30ea9dc727a333

AI disclosure

OpenAI Codex assisted with the static source review and organization of this issue. No code change is included.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions