One would hope there would be some sanitization of attachments to prevent this.
I also wish there was a regular option in iOS Messages to disable link previews.