Question

Jwt security. How secure is it?

I came across a few articles against JWT and the security vulnerabilities it causes. I just wanted to know if it is safe to use and store in local storage or if it should be avoided. Thank you!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @Cameron Hansen,

I take it you are talking about JSON Web Token, is that correct? I can’t say that I would suggest against it. There are security vulnerabilities everywhere in any technology. Let’s take it more broadly, no matter what you pick, you need to make sure everything is up to date and actively patch any APP, service or whatever you want to use. This is regarding everything not only JWT.

Regarding, JWT, they can be either signed, encrypted or both. I think this is safe enough. I mean even if you don’t encrypt it, it doesn’t mean someone can change it as you’ve signed it.