-
Notifications
You must be signed in to change notification settings - Fork 412
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
Configure dotenv_values
's search space
#509
Comments
nevercodecorrect
changed the title
Restrict the
Configure Mar 20, 2024
.env
to the current project folderdotenv_values
's search space
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the user-specified path could point to any folder and
dotenv
will parse them anyway even if it is files like/etc/passwd
.The content of the target file would be available in the error message. This could potentially introduce the path traversal vulnerability if the developer misuses it.
I am wondering if it is possible to give
dotenv_values
an additional arguments to control if it would support relative path searching.The text was updated successfully, but these errors were encountered: