{"id":"CVE-2025-47948","aliases":["EUVD-2025-28138","GHSA-mj2c-8hxf-ffvq"],"status":"published","title":"Cocotais Bot has builtin .echo command injection","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 \u003cqqbot-at-everyone /\u003e` 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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00411,"percentile":0.35856,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74"],"published":"2025-05-17T18:42:24Z","modified":"2026-11-11T02:48:27Z","fixes":[{"ecosystem":"npm","package":"cocotais-bot","fixed_in":["1.6.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"cocotais-bot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5.0-test2-hotfix"},{"fixed":"1.6.2"}]}]},{"source":"osv","ecosystem":"npm","package":"cocotais-bot","ranges":[{"type":"SEMVER","events":[{"introduced":"1.5.0-test2-hotfix"},{"fixed":"1.6.2"}]}]}],"products":[{"vendor":"cocotais","product":"cocotais-bot"}],"references":[{"url":"https://github.com/cocotais/cocotais-bot/security/advisories/GHSA-mj2c-8hxf-ffvq","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/cocotais/cocotais-bot/commit/d1cf01a9a41b3131241d1833444b890c8d6e70b8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47948","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mj2c-8hxf-ffvq"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47948.json","tags":["advisory"]},{"url":"https://github.com/cocotais/cocotais-bot","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-47948","title":"Cocotais Bot has builtin .echo command injection","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 \u003cqqbot-at-everyone /\u003e` 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.","status":"published","published":"2025-05-17T18:42:24.382Z","modified":"2025-05-19T14:43:51.36Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:32:26.320248Z"}],"euvd":[{"id":"EUVD-2025-28138","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 \u003cqqbot-at-everyone /\u003e` 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.","status":"published","published":"2025-05-17T18:42:24Z","modified":"2025-05-19T14:43:51Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T20:32:44.291904Z"}],"ghsa":[{"id":"GHSA-mj2c-8hxf-ffvq","title":"Cocotais Bot has builtin .echo command injection","description":"### 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 \u003cqqbot-at-everyone /\u003e` 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 `\u003cqqbot-at-everyone /\u003e`, 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 \u003cqqbot-at-everyone /\u003e\n```\n﻿\nThe bot will then send a message containing `\u003cqqbot-at-everyone /\u003e`, 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 \u003cqqbot-at-everyone /\u003e\n```\n4. The bot will respond by repeating the message, and the platform will interpret `\u003cqqbot-at-everyone /\u003e` as an @全体成员 mention.\n5. All the chat members receive a notification, despite the user lacking that permission.\n﻿\n﻿","status":"published","published":"2025-05-19T16:25:05Z","modified":"2025-05-19T16:25:09Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:38:43.998596Z"}],"nvd":[{"id":"CVE-2025-47948","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 \u003cqqbot-at-everyone /\u003e` 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.","status":"published","published":"2025-05-17T19:15:46.667Z","modified":"2026-06-17T09:28:53.1Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:11:08.321805Z"}],"osv":[{"id":"CVE-2025-47948","title":"Cocotais Bot has builtin .echo command injection","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 \u003cqqbot-at-everyone /\u003e` 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.","status":"published","published":"2025-05-17T18:42:24.382Z","modified":"2026-11-11T10:47:21.096956252Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L","level":"high"}],"cwes":["CWE-74"],"updated_at":"2026-11-11T03:22:10.237529Z"},{"id":"GHSA-mj2c-8hxf-ffvq","title":"Cocotais Bot has builtin .echo command injection","description":"### 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 \u003cqqbot-at-everyone /\u003e` 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 `\u003cqqbot-at-everyone /\u003e`, 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 \u003cqqbot-at-everyone /\u003e\n```\n﻿\nThe bot will then send a message containing `\u003cqqbot-at-everyone /\u003e`, 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 \u003cqqbot-at-everyone /\u003e\n```\n4. The bot will respond by repeating the message, and the platform will interpret `\u003cqqbot-at-everyone /\u003e` as an @全体成员 mention.\n5. All the chat members receive a notification, despite the user lacking that permission.\n﻿\n﻿","status":"published","published":"2025-05-19T16:25:05Z","modified":"2026-09-10T03:50:57.596478108Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:46:51.811331Z"}]}}
