Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-out

Open Beginner friendly
#1,617 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
api, backend, security

Research direction

Start at internal/schema/question_schema.go:206 and trace the validation for the invite_user array used by PUT /answer/api/v1/question/invite. Find the UI's existing invite limit, then verify how oversized requests are handled and add matching coverage if the repository has tests for this schema or endpoint. Done means the server enforces a maximum and prevents unbounded notification fan-out.

Written by the indexing model from the issue text.

Description

Background

PUT /answer/api/v1/question/invite accepts an uncapped invite_user array (internal/schema/question_schema.go:206), so a single request can trigger a large number of "invited you to answer" notifications.

I reported this privately to the ASF security team. They confirmed the endpoint's rank-gated, site-wide behaviour is by design (not a boundary crossing), but noted the missing maximum on invite_user reads as hardening. Filing here per that suggestion.

Suggested hardening
  • Add a sane server-side maximum on invite_user (e.g. matching the UI's limit) to bound the notification fan-out.

Happy to send a PR.

Dominant language
Go
Stars
15.7k
Forks
1.4k
Avg merge
1d 20h
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/answer

All issues in apache/answer

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.