Bug 2490796 (CVE-2026-12726) - CVE-2026-12726 awx: automation-controller: awx: GitHub webhook second-order SSRF via unvalidated statuses_url exfiltrates PAT credential
Summary: CVE-2026-12726 awx: automation-controller: awx: GitHub webhook second-order S...
Keywords:
Status: NEW
Alias: CVE-2026-12726
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-19 15:10 UTC by OSIDB Bzimport
Modified: 2026-06-19 18:43 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-19 15:10:44 UTC
A flaw was found in the AWX GitHub webhook integration. When a GitHub pull_request webhook is received, GithubWebhookReceiver.get_event_status_api() in awx/api/views/webhooks.py returns pull_request.statuses_url from the request body without validation. The value is stored in job extra variables as awx_webhook_status_api and later used by WebhookMixin.update_webhook_status() in awx/main/models/mixins.py as the callback URL when posting job status updates.
If a job template is configured with webhook_service=github and a GitHub Personal Access Token credential as webhook_credential, the controller sends that token in the Authorization header when POSTing to the stored callback URL on job completion. Although the controller is designed to post commit status updates back to GitHub, it does not restrict the callback URL to trusted GitHub API endpoints.
An attacker who can submit a forged webhook request with a valid HMAC-SHA1 signature for the target job template's webhook_key can supply an attacker-controlled statuses_url and cause exfiltration of the configured GitHub PAT when the triggered job completes. Normal GitHub webhook deliveries do not allow arbitrary contributors to control statuses_url; exploitation requires knowledge of the per-template webhook shared secret or privileged access to retrieve it from the controller.
Upstream: https://github.com/ansible/awx
Affected files:
  - awx/api/views/webhooks.py (GithubWebhookReceiver.get_event_status_api)
  - awx/main/models/mixins.py (WebhookMixin.update_webhook_status)


Note You need to log in before you can comment on or make changes to this bug.