{"id":"XE-12957","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2416,"title":"CLI chat: remote message text is printed to the terminal raw (ANSI/OSC injection, line spoofing)","area":"node-api","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T14:45:37.385311+00:00","updated_at":"2026-11-20T19:46:06.702421+00:00","source_created_at":null,"told_at":"2026-11-20T19:46:06.722610+00:00","status_changed_at":"2026-11-20T19:46:06.710161+00:00","url":"https://bounty.xe.network/XE-12957","body":"Summary. xe chat read prints sender-controlled message text to the terminal without escaping, allowing ANSI/OSC escape injection and forged transcript lines from any remote sender.\r\n\r\nDocumented rule. Untrusted remote content written to a terminal must be escaped; the CLI's own --json path already neutralises control characters via JSON encoding.\r\n\r\nCode path. xe/cmd/xe/chat.go printEnvelope (lines 220-231): the non-JSON branch formats env.Message (and the address fields) directly into the output with fmt.Fprintf. Affected code is at xe HEAD 89a542e.\r\n\r\nReproduction. Send a chat message containing an OSC-52 clipboard escape sequence or an embedded newline followed by a forged transcript line to a victim address; the victim runs xe chat read and the escape sequence reaches their terminal / the forged line appears in their transcript.\r\n\r\nImpact. Clipboard manipulation on OSC-52 terminals and convincing transcript spoofing for every user of the default read path.","patch_refs":[],"thread":[{"id":15553,"source":"desk","source_ref":"reply:13444","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-12957 and says what differs; it is read like any other.","created_at":"2026-11-20T19:46:06.702421+00:00"}]}