Voice | Dec. 03, 2026
Voice JavaScript SDK 2.19.1 fixes a security vulnerability in the edge option
Twilio released version 2.19.1 of the Voice JavaScript SDK (@twilio/voice-sdk) on December 3, 2026. This release fixes a security vulnerability in how the SDK handles the edge option.
All customers using the Voice JavaScript SDK should upgrade to version 2.19.1 as soon as possible.
In versions 2.0.0 through 2.19.0, the SDK doesn’t check what an edge value contains before it builds the address for its signaling connection. An edge value written to exploit this could allow the SDK to connect to a server outside Twilio infrastructure.
An application is exposed if input that someone other than its developer can influence reaches the edge option of new Device(), device.updateOptions(), or Device.runPreflight(). Examples include URL parameters, postMessage data, and stored user preferences. Applications that don’t set edge, or set it only to fixed values from the edge locations list, aren’t exposed through this option.
Version 2.19.1 accepts only letters, digits, and hyphens in edge values. It throws InvalidArgumentError for any other value.
What customers need to do
Customers should update @twilio/voice-sdk to version 2.19.1 as soon as possible, then rebuild and deploy every application and environment that includes the SDK. Customers who can’t upgrade right away should pass only fixed edge names to the edge option and keep Twilio Access Token lifetimes short.
For more information, see these resources: