Skip to content

fix(app): OSC 52 silently overwrites the clipboard #18

Closed

Description

@arifintahu

Grid.svelte writes any OSC 52 payload to the clipboard with no prompt, size cap or setting. Output from a malicious file or remote host can replace the clipboard with a command the user then pastes.

Fix: a terminal setting to allow program clipboard writes (default off), a payload size cap, and a toast when a program sets the clipboard. Add tests for the parser limit.

Blocks 1.0.0.

Activity

  1. added
    bug
    security
    on Oct 28, 2026
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

    bugsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions