跳到正文
事件历史事件

微信智能体插件被指媒体说明未中和标签

1篇报道1个报道来源最近报道

先了解这件事

AI 综述

2026年11月5日,微信智能体插件 dsh-plugin-wechat 的一个 issue 指出,媒体消息分支会重建 prompt 并覆盖此前已处理好的内容,caption 中的 weixin_ 标签未经中和就进入 prompt,形成提示注入入口。报告定位到 src/index.js:2187 的 prompt = parts.join('\n\n') 覆盖了由 quoted 与 neutralizeTags(message.text) 组成的结果。

AI 根据报道生成 · 24 天前更新

后续时间线

11月5日
  1. xrzhai/dsh-plugin-wechat
    微信智能体插件 dsh-plugin-wechat 报告媒体分支覆盖 prompt,caption 未中和可致标签注入

    微信智能体插件 dsh-plugin-wechat 的一个 issue 指出,媒体消息分支会重建 prompt 并覆盖此前已处理好的内容,caption 中的 weixin_ 标签未经中和就进入 prompt,形成提示注入入口。报告定位到 src/index.js:2187 的 prompt = parts.join('\n\n') 覆盖了 quoted 与 neutralizeTags(message.text) 组成的结果,以及 src/media/inbound.js 中 describeInboundMedia 把原始 caption 直接拼入末尾。由此带来三个后果,附件下载失败时用户输入的文字完全不进入 prompt,caption 可注入 weixin_ 标签,带媒体消息的引用回复被整体丢弃,报告将影响定为高。