Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

410
Views
Nuxt.js: is window.__NUXT__ a vulnerability?

At work, we have a Nuxt.js app, and there has been some discussions about a bug bounty report pointing to the fact that you can access the Vue instance from window.__NUXT__.

I haven’t found any posts or articles concerned about this, so I'm wondering if this is actually a vulnerability or not. What do you think? Is there a way a 3rd party can get access to a user's window.__NUXT__?

The main concern is that you could access the Vuex state (and the api tokens stored inside) through window.__NUXT__.state.auth...

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

As somehow explained in my other answer here: https://stackoverflow.com/a/69945576/8816585

A frontend is not secure by design because everything is exposed to the end user. He could literally open his devtools and inspect everything indeed.

Is it an issue per se? No.
Can it be risky if a third-party access some data with it? Yeah, as pretty much any package that you're using in your package.json basically. It's not more risky.

Then, should you store some private tokens on the frontend? Probably not.
If using JWT or a solution alike, yeah you can totally have publicly facing tokens. Since those are meant to be refreshed often and are harmless like any other public key (like in SSH).

The tokens just don't need to be private, for those only a server-side solution is viable (like a stripe secure token for example).

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!