-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React 16.9+ deprecated javascript urls warning #1917
Comments
Thanks for raising @wozzo. We'll take it as a point to investigate but we have no plans to update the version of React being used. However, I appreciate that the warning is alarming. Let me look into what we can do to fix that. |
It looked to me look the anchor tags could be replaced with buttons, which would likely also be more semantically correct. But I'm not particularly familiar with your code base. |
Thanks @wozzo. To close the loop here, unfortunately at the moment we don't officially support React 16 and as mentioned have no plans to upgrade at this time. Appreciate you bringing this to our attention though. I've kept a note internally about this issue should we revisit those plans. |
For those landing on this topic in the future: This is not good enough. React 16 is 3 years old. You've been informed of an attack surface and choose to do nothing about it. We cannot have our identity provider opening an attack surface as facile as "javascript:" URLs. I've raised a support ticket through the Auth0 system, this is enough of a problem to change identity provider. |
Thanks for raising concerns @brainwipe, I have raised this internally again for awareness. |
To circle back here, we have been reviewing this internally with the security team. Besides the update to React 16 (which is a separate issue), we don't believe we are exposing an attack surface here. Yes, React has deprecated use of There are other users concerned about the practise of flagging such URLs as being a problem. Having said that, I will raise some work internally to refactor out these URLs where possible to ease concerns. |
Is there a github issue for updating (or not) the version of react? What's the reasoning for deciding not to do so? I would also consider the use of |
We did used to have them as buttons but it caused issues with password managers such as LastPass not being able to function correctly. See: #1760
Currently it's just not a priority compared to our roadmap for the rest of our surface area, which is large. The change we'd like to make is to make React a peer dependency so that you can roll with your own version of React, which would be a breaking change and require a new major version. Support then becomes trickier with trying to determine how we support version 11 for those customers, and a new version 12. Not only that, it starts to get weird for those people not using React but some other framework - now a Vue developer has to also install React to get Lock to work? Having said all that, we do recognise it as a pain point and I am discussing options. If there's any change, I'll let you know. |
I think it would have helped to take the social buttons out of the form. This might be more complex, but that way lock would be more A11y compliant, both in terms of form usage as well as using |
Describe the problem
Using a
Auth0Lock
'sshow
method leads to a javascript warning with React@^16.9.0 about deprecated javascript urls.Caused by React: Deprecating javascript urls
What was the expected behavior?
No warning message
Reproduction
Environment
Versions tested
"auth0-js": "^9.13.4",
"auth0-lock": "^11.26.3",
"react": "^16.13.1",
Tested in Firefox
Note
I had a quick look at the code and the warning I received appeared to be caused by the
a
element in theQuickAuthPane
, but there are multiple places wherejavascript:void(0)
is used.The text was updated successfully, but these errors were encountered: