7.2high
Cocotais Bot has builtin .echo command injection
- Severity
- 7.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.51% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mj2c-8hxf-ffvq
Description
Cocotais Bot is a QQ official robot framework based on qq-bot-sdk. Starting in version 1.5.0-test2-hotfix and prior to version 1.6.2, command echoing feature in the framework allows users to indirectly trigger privileged behavior by injecting special platform tags. Specifically, an unauthorized user can use the `/echo <qqbot-at-everyone />` command to cause the bot to send a message that mentions all members in the chat, bypassing any permission controls. This can lead to spam, disruption, or abuse of notification systems. Version 1.6.2 contains a patch for the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cocotais cocotais-bot | >= 1.5.0-test2-hotfix, < 1.6.2 | CVE List |
| cocotais-bot (npm) | from 1.5.0-test2-hotfix before 1.6.2 | GitHub Advisory Database |
All scores
| GitHub_M | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Cocotais Bot is a QQ official robot framework based on qq-bot-sdk. Starting in version 1.5.0-test2-hotfix and prior to version 1.6.2, command echoing feature in the framework allows users to indirectly trigger privileged behavior by injecting special platform tags. Specifically, an unauthorized user can use the `/echo <qqbot-at-everyone />` command to cause the bot to send a message that mentions all members in the chat, bypassing any permission controls. This can lead to spam, disruption, or abuse of notification systems. Version 1.6.2 contains a patch for the issue.
GitHub Advisory Database
Summary
A command echoing feature in the framework allows users to indirectly trigger privileged behavior by injecting special platform tags. Specifically, an unauthorized user can use the /echo <qqbot-at-everyone /> command to cause the bot to send a message that mentions all members in the chat, bypassing any permission controls. This can lead to spam, disruption, or abuse of notification systems.
Details
The framework provides a command /echo that causes the bot to repeat any user-provided message verbatim in the group chat. However, the bot fails to sanitize or filter platform-specific control elements such as <qqbot-at-everyone />, which, when included in a message, mentions everyone (i.e., @全体成员). While normal users are forbidden from using this tag in normal chats, the bot, which has higher privileges, is allowed to do so.
Since the /echo command blindly echoes any content, a user can exploit this by sending:
/echo <qqbot-at-everyone />
The bot will then send a message containing <qqbot-at-everyone />, causing the platform to interpret it as an @全体成员 command, effectively allowing an unauthorized user to @everyone via the bot.
PoC
- Set up a chatbot using the affected framework.
- Join the chat that includes the bot as a regular user with no permission to use @全体成员.
- Send the following message in the chat:
/echo <qqbot-at-everyone />
- The bot will respond by repeating the message, and the platform will interpret
<qqbot-at-everyone />as an @全体成员 mention. - All the chat members receive a notification, despite the user lacking that permission.
NVD (es)
Cocotais Bot es un framework oficial de QQ basado en qq-bot-sdk. A partir de la versión 1.5.0-test2-hotfix y anteriores a la 1.6.2, la función de eco de comandos del framework permite a los usuarios activar indirectamente comportamientos privilegiados mediante la inyección de etiquetas especiales de la plataforma. En concreto, un usuario no autorizado puede usar el comando `/echo ` para que el bot envíe un mensaje que mencione a todos los miembros del chat, omitiendo así cualquier control de permisos. Esto puede generar spam, interrupciones o abuso de los sistemas de notificación. La versión 1.6.2 incluye un parche para este problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-47948 changed 2025-05-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mj2c-8hxf-ffvq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-47948 changed 2026-06-17 | Public domain |