# CVE-2026-47172: Quest Bot malicious code deployment via GitHub Actions workflow_run

Source: https://junglewise.ai/threats/cve-2026-47172-quest-bot-malicious-code-deployment-via-github-actions-workflow  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-11. Updated: 2026-06-11  
License: CC BY 4.0 with a link back

CVE-2026-47172 · Severity: info · CVSS 10 · Published 2026-06-11

Quest Bot is an open-source Discord bot used for server moderation and support. A security flaw in the bot's automated deployment process allows unauthorized individuals to deploy their own malicious code directly into the production environment. By submitting a specially crafted pull request, an attacker could take over the bot, access sensitive Discord tokens, and compromise the data of servers where the bot is installed.

Technologies: [Duck-Organization Quest Bot](https://junglewise.ai/threats/technologies/quest-bot). Vendors: [Duck-Organization](https://junglewise.ai/threats/vendors/duck-organization).

## Quick answers

**Is CVE-2026-47172 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47172 being exploited in the wild.

**How severe is CVE-2026-47172?** Informational severity, with a CVSS score of 10, published 11 June 2026.

**Which products and versions are affected?** Duck-Organization Quest Bot <= 1.0.2.

**Is there a fix for CVE-2026-47172?** A patch was published on 2026-05-17: Version 1.0.3 released to address the vulnerability. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-47172 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-47172?** Check whether you run Duck-Organization Quest Bot at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in the interaction between the unprivileged 'build' workflow and the privileged 'deploy' workflow (using the workflow_run trigger). The deploy workflow incorrectly validates the source of a build by only checking if the branch name is 'main'. An attacker can fork the repository, create a branch named 'main', and submit a pull request. Because the deploy workflow checks out the 'head_sha' of the triggering workflow rather than a trusted reference, it builds and deploys the attacker's code to production. This grants the attacker access to production secrets, including Discord tokens and database credentials. The issue is fixed in version 1.0.3 by improving workflow validation.

## Affected products

- duck-organization Quest Bot <= 1.0.2

## Timeline

- 2026-05-17: patched: Version 1.0.3 released to address the vulnerability.
- 2026-06-11: disclosed: CVE-2026-47172 published.

## References

- [https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3](https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3)
- [https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346](https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346)

## Related threats

- [duck-organization Quest Bot resource exhaustion via ticket creation](https://junglewise.ai/threats/cve-2026-49347-duck-organization-quest-bot-resource-exhaustion-via-ticket)
- [Quest Bot improper output escaping in /warns command](https://junglewise.ai/threats/cve-2026-48485-quest-bot-improper-output-escaping-in-warns-command)
- [Quest Bot Discord role hierarchy bypass in moderation commands](https://junglewise.ai/threats/cve-2026-47197-quest-bot-discord-role-hierarchy-bypass-in-moderation-commands)
- [Quest Bot improper input validation in automod command](https://junglewise.ai/threats/cve-2026-47196-quest-bot-improper-input-validation-in-automod-command)
- [Quest Bot incorrect authorization in purge and slowmode commands](https://junglewise.ai/threats/cve-2026-47195-quest-bot-incorrect-authorization-in-purge-and-slowmode-commands)
