Skip to content

[SECURITY] E1-7: hookBodySchema uses .passthrough() β€” forward unknown fieldsΒ #1398

@OneStepAt4time

Description

@OneStepAt4time

Finding

ID: SD-VAL-03 | Severity: 🟠 MEDIUM

hookBodySchema uses .passthrough(). Unknown fields in hook payloads are silently retained and forwarded to SSE subscribers and the event bus.

Fix Required

Remove .passthrough() and use .strict() or enumerate permitted extra fields explicitly.

Files: src/validation.ts

Acceptance Criteria

A hook payload with unknown field x_evil: 1 is stripped before SSE delivery.

Milestone

M-E1: Security Hardening

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions