Skip to content

Bug: POST /api/users accepts arbitrary body without input validation #12547

Open

Description

@slsgzs-cloud

The postUser function in userController.js passes req.body directly to createUser() without any input validation. An attacker could send any arbitrary JSON payload.

Bounty: $40

Fix: Add Zod schema validation to userController.js.

Activity

  1. added a commit that references this issue on Sep 17, 2026
    803e921
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