{"id":"CVE-2025-47948","aliases":["CVE-2025-47948","GHSA-mj2c-8hxf-ffvq"],"related":[],"kind":"vulnerability","state":"published","title":"Cocotais Bot has builtin .echo command injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n﻿\nA 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.\n﻿\n### Details\n﻿\nThe 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.\n﻿\nSince the `/echo` command blindly echoes any content, a user can exploit this by sending:\n﻿\n```\n/echo <qqbot-at-everyone />\n```\n﻿\nThe 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.\n﻿\n### PoC\n﻿\n1. Set up a chatbot using the affected framework.\n2. Join the chat that includes the bot as a regular user with **no permission to use @全体成员**.\n3. Send the following message in the chat:\n﻿\n```\n/echo <qqbot-at-everyone />\n```\n4. The bot will respond by repeating the message, and the platform will interpret `<qqbot-at-everyone />` as an @全体成员 mention.\n5. All the chat members receive a notification, despite the user lacking that permission.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-05-17T18:42:24.382Z","modified":"2026-09-10T03:50:57.596Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":">= 1.5.0-test2-hotfix, < 1.6.2","status":"affected"}],"vendor":"cocotais","product":"cocotais-bot","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.5.0-test2-hotfix","status":"affected","fixed":"1.6.2"}],"ecosystem":"npm","package":"cocotais-bot","purl":"pkg:npm/cocotais-bot","source":"ghsa"}],"references":[{"url":"https://github.com/cocotais/cocotais-bot/security/advisories/GHSA-mj2c-8hxf-ffvq","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cocotais/cocotais-bot/commit/d1cf01a9a41b3131241d1833444b890c8d6e70b8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47948","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cocotais/cocotais-bot","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-05-19T14:43:47.464Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-47948","url":"https://www.cve.org/CVERecord?id=CVE-2025-47948","licence":"CVE Terms of Use","modified":"2025-05-19T14:43:51.360Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mj2c-8hxf-ffvq","url":"https://github.com/advisories/GHSA-mj2c-8hxf-ffvq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:57.596Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-47948","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47948","licence":"Public domain","modified":"2026-06-17T09:28:53.100Z"}],"updatedAt":"2026-11-25T22:58:58.173Z","epss":{"score":0.00506,"percentile":0.44774,"date":"2026-12-01T12:00:22.000Z"}}