Chatwoot callback exposure: a webhook route can become an outbound request primitive

Chatwoot before 4.17.0 contains a server-side request forgery issue in the Twilio callback path. CVE-2026-66024 says missing Twilio request signature validation allows an unauthenticated attacker to submit a forged inbound message with an attacker-controlled MediaUrl0. The server then fetches the URL with the channel's Twilio credentials attached as HTTP Basic authentication.

The vulnerability sits at a junction between inbound webhooks and outbound HTTP. A public customer-support platform accepts messages from a provider and may download media attachments. If the request is not authenticated, the application cannot distinguish the provider from an attacker. If the fetch follows arbitrary destinations, the same functionality can reach internal services or cloud metadata.

A ZoomEye count-only survey on November 30, 2026 returned 23,938 matches for app="Chatwoot", 22,019 for title="Chatwoot", and 75 for http.body="twilio/callback". The queries used sub_type=all, page 1 and page size 1. The app and title results show a substantial public product surface. The callback marker is a narrower clue, but it does not prove that a site accepts forged messages or that its version is affected.

Inventory the integration

Discover the self-hosted instances first. A SaaS Chatwoot deployment is outside the customer's patch boundary, but a self-hosted instance may contain customer conversations, agent identities and Twilio credentials. Check the version and whether the site uses an SMS or WhatsApp inbox through Twilio. Review the callback URL and the reverse proxy that forwards it.

The public path can be exposed while the main application is behind authentication. Search engine crawlers may not see the callback route directly. The 75 body matches therefore do not provide complete coverage. Internal URL inventories and web-server logs are better sources for callback endpoints.

Stop arbitrary egress

Update to Chatwoot 4.17.0 or later and redeploy every worker that handles callback requests. A web process may write a job that a background worker executes, so the fix must cover both components. Verify the version and container digest on each service.

Until the upgrade is complete, require provider signature validation at the edge or place the callback behind a trusted provider-specific ingress control. Egress filtering should block private address ranges, link-local metadata and non-approved external destinations. This is a general SSRF containment measure and should not be used as a substitute for the application patch.

Rotate Twilio credentials after a suspected abuse event. Review requests to /twilio/callback for unexpected source addresses, malformed signatures, unusual MediaUrl0 destinations and response-time anomalies. Check worker outbound connections and any internal service access that originated from the application. A forged callback does not necessarily produce a visible user login or message in the inbox.

Reporting hygiene

Do not call all 23,938 app matches vulnerable. The query identifies an application fingerprint. The version, integration and exposed callback route are separate facts. Report the public population as an inventory observation, then show how many owned instances are self-hosted, use Twilio and run an affected release.

The most useful metric is the number of internet-reachable callback endpoints whose requests are fully validated and whose workers cannot fetch internal destinations. ZoomEye helps locate candidate instances. Configuration review and controlled callback tests establish whether the security boundary is in place.

References