Skip to content

[BUG][Low]- Remote dataset loader buffers responses without limits #113

Open

Description

@arthurianresolve

Summary

The JSON and CSV HTTP loaders read an entire remote response into memory before parsing and accumulating rows. A very large or continuing response from a lower-trust dataset host can exhaust memory or occupy a blocking worker. A trusted caller must load an attacker-controlled or compromised remote dataset; no shipped route lets an outside client select the URL.

Affected code

Suggested resolution

  • Set configurable request deadlines, byte limits, and row limits; enforce them while streaming before parsing and collection.

Acceptance criteria

  • An oversized HTTP response is rejected after a configured byte limit.
  • A continuing response reaches a deadline.
  • Normal datasets still load.

Related issues

#74 concerns feature-gating heavy DataLoader dependencies. This ticket concerns limits on remote bytes, duration, and parsed rows.

Validation performed

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

Fix under review

PR #108: The PR enforces download and row limits while reading remote data.

Tracking

  • Finding ID: csf_e8ad3009f2c773c26e7ec6c3
  • Fingerprint: codex-security/v1:sha256:121fb675563b07383886302a227884ced81f77a5deebd161d831c37a52841e43

AI disclosure

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

Activity

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