{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47172 exists.","fix":"No fix has been published for CVE-2026-47172 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-47172 is a critical code injection vulnerability in duck-organization quest-bot, published on 11 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47172 and fix it if it is affected.\n\nWhat it is: CVE-2026-47172 is a critical code injection vulnerability in duck-organization quest-bot, published on 11 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47172 exists.\n\nAffected product: duck-organization quest-bot. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47172/ (Markdown: https://insights.sbomify.com/CVE-2026-47172/index.md)","id":"CVE-2026-47172","markdown":"https://insights.sbomify.com/CVE-2026-47172/index.md","name":"CVE-2026-47172","record":{"aliases":["GHSA-9qf3-c86c-j346"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Discord moderation bot","requires_auth":"none","summary":"Attackers can execute arbitrary code in production by submitting pull requests that trigger privileged deployment workflows, compromising the Discord bot.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.5,"severity":"critical","source":"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","version":"4.0"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-09-07","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-07T12:07:23Z","kind":"github_poc","ref":"https://github.com/pvharmo2/gha-lab-00d54c717d","stars":0,"title":"Security-research lab: CVE-2026-47172 (workflow_run pwn request in deploy.yaml) — flattened snapshot of duck-organization/questbot at 1903b2f"}],"tier":"weaponised"},"has_fix":false,"headline":"Quest Bot: Untrusted pull request code can be built and deployed by privileged `workflow_run` deployment.","id":"CVE-2026-47172","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Quest Bot: Ticket reason allows mass-mention injection","id":"CVE-2026-47173"},"packages":[],"prev":{"headline":"Quest Bot: Reminder messages allow stored mass mentions through `@everyone` and `@here`","id":"CVE-2026-47171"},"products":["quest-bot"],"published":"2026-06-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-11","vendors":["duck-organization"]},"summary":"Attackers can execute arbitrary code in production by submitting pull requests that trigger privileged deployment workflows, compromising the Discord bot.","url":"https://insights.sbomify.com/CVE-2026-47172/"}