Vulnerability · Published May 17, 2025 · Assigned by GitHub_M
CVE-2025-47948Cocotais Bot has builtin .echo command injection
High 7.2
In plain English
A high-severity injection in cocotais-bot from cocotais. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | cocotais-bot | 1.6.2 | GHSA-mj2c-8hxf-ffvq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| cocotais | cocotais-bot | >= 1.5.0-test2-hotfix, < 1.6.2 |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L