Skip to content
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

Potential risk of credential leaks due to misconfiguration of NextJS #256

Open
itsderinger opened this issue Feb 8, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@itsderinger
Copy link

itsderinger commented Feb 8, 2023

Hi @jimmybisenius,

There might be a misconfiguration in the nextjs.config.js file: In its current state, it seems that all env variables are exposed to the JavaScript bundle (and consequently the client). If correct, the following environment variables could be at risk of getting leaked: DB_USER, DB_PASSWORD, SECRET, and PASSWORD.

Source: https://nextjs.org/docs/api-reference/next.config.js/environment-variables

@jimmybisenius
Copy link
Contributor

Good issue, cc @saraspaudel

@jimmybisenius jimmybisenius added the bug Something isn't working label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants