twilio-ruby is vulnerable to Authentication Bypass
75
CVE Score
High
Authentication Bypass
The Rack::TwilioWebhookAuthentication middleware checks incoming webhook requests against a list of configured protected paths using only the raw, un-normalized PATH_INFO value. A request for a percent-encoded, dot-segment, or duplicate-slash variant of a protected path (for example /%76oice instead of /voice) still routes to the protected action but does not match any configured entry, so the middleware skips X-Twilio-Signature validation entirely. This lets unsigned, unauthenticated requests reach the protected webhook handler as though they carried a valid Twilio signature. The fix adds a protected_path? check that also compares decoded and normalized forms of the request path before allowing a request through unsigned.
Upgrade the twilio-ruby library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you configure Rack::TwilioWebhookAuthentication to validate only specific protected paths rather than every request.
3.12.0 - 7.11.1
Fixed in 7.11.2twilio-ruby is vulnerable to Authentication Bypass in versions 3.12.0 - 7.11.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.