twilio-ruby is vulnerable to Authentication Bypass
75
High Risk
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.
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.
twilio-ruby is vulnerable to Authentication Bypass in versions 3.12.0 - 7.11.1.
Upgrade the twilio-ruby library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.