Skip to main content

Deleted messages still have embed metadata and API still reports the message as accessible

when a message is deleted, the client hides the text content, but the backend keeps the embed. the backend allows clients to perform PUT updates against deleted message IDs, returning {ok: 'true'} and updating the stored metadata instead of rejecting the request on a deleted record.

allows user to bypass deleted messages.

could affect users who’ve accidently sent personal information, and tried to delete it.

how to reproduce:

  1. post a message containing a link that generates a preview card (e.g., https://example.com).

  2. delete the message

  3. query the channel history endpoint via

    GET /api/servers/{server}/channels/{channel}/messages?limit=50

  4. console shows that while the message object returns "is_deleted": true and "content": "", the embeds array still contains the full original preview metadata (URL, title, description, and preview links).

  5. Send a PUT request to

    /api/servers/{server}/channels/{channel}/messages/{deleted_message_id}/embeds

  6. the server returns {ok: 'true'}, confirming that state modifications are still permitted on deleted records.

Status: Completed

Log in to comment and vote

No comments yet

Be the first to share your thoughts.