Skip to content

fix: cap stdin read at 1 MiB to prevent DoS - #3857

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/event-stdin-bounded-read
Open

fix: cap stdin read at 1 MiB to prevent DoS#3857
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/event-stdin-bounded-read

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Unbounded sys.stdin.read() allowed a malicious caller to exhaust memory by sending a multi-gigabyte payload. Cap at 1 MiB and raise typer.Exit if truncated.

Unbounded sys.stdin.read() allowed a malicious caller to exhaust memory
by sending a multi-gigabyte payload. Cap at 1 MiB and raise typer.Exit
if truncated.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 29, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant