-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CVE in github.com/pkg/[email protected] indirectly included by spf13/afero #1257
Comments
👋 Thanks for reporting! A maintainer will take a look at your issue shortly. 👀 In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues. ⏰ If you have a couple minutes, please take some time and share your thoughts: https://forms.gle/R6faU74qPRPAzchZ9 📣 If you've already given us your feedback, you can still help by spreading the news, https://twitter.com/sagikazarmark/status/1306904078967074816 Thank you! ❤️ |
Note that:
Afero should be updated once a new version is out, but this is not considered a high severity issue in Viper. |
In the meanwhile, it could be worth publishing some security note (link to this issue) with instructions that users responsible to use replace instructions in their go.mod file to workaround the issue until a new release is out hopefully including the updated dependency. |
afero dependency released a version 1.70 (1.7.1since then) which includes updated sftp version. You may now bump the newer version to fix this issue |
I think this can be closed. See #1271 |
Looks like there still remains a dependency with v1.10.1 since it appears in go.sum. Looks like v1.10.1 is still referenced by some others dependency. I will look at the go mod graph once I have access to laptop early next year. Maybe a go mod tidy is simply required. |
The fact that 1.10.1 is in the go.sum file doesn't mean Go ever resolves the dependency to it. It only means it's a dependency of something, but Go will always choose the newer version. |
Should be fixed in v1.11.0 |
Preflight Checklist
Viper Version
1.9.0
Go Version
1.17
Config Source
Flags, Environment variables
Format
No response
Repl.it link
No response
Code reproducing the issue
No response
Expected Behavior
go mod graph | fgrep github.com/pkg/sftp should list latest version v1.13.4 once afero has been updated/versioned to use it.
Otherwise, afero dependency should be replaced.
Actual Behavior
github.com/pkg/[email protected] is included.
Steps To Reproduce
No response
Additional Information
Filed an issue on afero side: spf13/afero#330 referencing the sftp issue fixed for CVE
The text was updated successfully, but these errors were encountered: