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

Upgrade github.com/crewjam/saml dep to v0.4.6 to resolve CVE-2020-26160 #70

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

jlourenc
Copy link
Contributor

The aim of this PR is to resolve CVE-2020-26160 present in github.com/dgrijalva/jwt-go and imported in go-baseapp via github.com/crewjam/saml v0.4.5.

The CVE is fixed in github.com/crewjam/saml thanks to crewjam/saml#383, which has been released as part of v0.4.6.

However, this version also includes breaking changes which need fixing, the relevant ones being:

@palantirtech
Copy link
Member

Thanks for your interest in palantir/go-baseapp, @jlourenc! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Copy link
Member

@bluekeyes bluekeyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thank you for the update!

@bluekeyes bluekeyes merged commit 487c6c0 into palantir:develop Dec 10, 2021
@jlourenc jlourenc deleted the cve/2020-26160 branch December 11, 2021 16:04
@jlourenc
Copy link
Contributor Author

Thank you @bluekeyes for your quick action!

It'd be great to release a new version of the library so that palantir/go-githubapp's dependency can be upgraded too.

@bluekeyes
Copy link
Member

Sure thing, I just tagged v0.3.1. While probably still a good idea to upgrade go-githubapp, it only depends on this module via the example package, which doesn't use the auth/saml package from here.

@jlourenc
Copy link
Contributor Author

Thanks, that's great news.

Security bots like Dependabot or Renovatebot generally look at the dependency graph without much consideration whether the vulnerable code path and/or package is indeed used.

With that in mind, I think it'd be great for the community to release a v0.10.1 version of palantir/go-githubapp to move off the vulnerable version of crewjam/saml.

@asvoboda
Copy link
Member

@jlourenc I tagged v0.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants