Skip to content

Fix/input fields clipboard bomb - #3

Merged
hyuricane merged 3 commits into
masterfrom
fix/input-fields-clipboard-bomb
Oct 11, 2026
Merged

hyuricane merged 3 commits into
masterfrom
fix/input-fields-clipboard-bomb

Conversation

@hyuricane

Copy link
Copy Markdown
Owner

intercept ctrl+v key binding and safely read and paste clipboard data to mitigate 'clipboard bomb' vulnerability.

files:

  • added: clipboardsafe/clipboardsafe.go platform aware clipboard reader, limited to 4 MiB
  • updated: tui/app.go intercept 'ctrl+v' at Model.Update for all textinput. replacing it with clipboardsafe.ReadAllLimitedand handle insertion with insertAtCursor

@hyuricane
hyuricane merged commit 132eca9 into master Oct 11, 2026
1 check passed
@hyuricane
hyuricane deleted the fix/input-fields-clipboard-bomb branch October 11, 2026 18:15
@hyuricane hyuricane mentioned this pull request Oct 11, 2026
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