Overview
Auth0 Lock version 11.20.4 and earlier did not properly sanitize the generated HTML code. Customers using theadditionalSignUpFields
customization option to add a checkbox to the sign-up dialog who are passing a placeholder
property obtained from an untrusted source (e.g., a query parameter) could allow cross-site scripting (XSS) on their sign-up pages.
Am I affected?
You are affected by this vulnerability if all of the following conditions apply:- You are using Auth0 Lock version 11.20.4 or earlier.
- You pass
additionalSignUpFields
as an option when initializing Lock, and it includes a field of typecheckbox
with aplaceholder
value obtained from an untrusted source.
placeholder
value is partially user-controlled by the name
query parameter:
How to fix that?
Developers using Auth0’s Lock sign-in solution need to upgrade to version 11.21.0 or later. Version 11.21.0 introduces two changes:- The existing
placeholder
property is now treated as plain text to mitigate the problem. - A new
placeholderHTML
property is introduced that indicates the level of control it provides and that its value should be supplied only from trusted sources.
Will this update impact my users?
This fix patches the Auth0 Lock widget and may require changes in application code, but it will not impact your users, their current state, or any existing sessions. Developers using theplaceholder
property with HTML content from a trusted source should start using the placeholderHTML
property to continue providing the same user experience.