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

Update yaml.v2 and go-toml modules #94

Merged
merged 1 commit into from May 31, 2022
Merged

Update yaml.v2 and go-toml modules #94

merged 1 commit into from May 31, 2022

Conversation

decke
Copy link
Contributor

@decke decke commented May 20, 2022

Generated with:

go get -u ./...
go mod tidy
go test

Builds fine and tests run fine as well. Runtime testing was limited to my own use case.

This also brings yaml.v2 to a version which is not affected by CVE-2019-11254 anymore. For details also see: GHSA-wxc4-f4m6-wwqv

@peterbourgon
Copy link
Owner

So, if I understand correctly, the issue was excessive resource consumption from pathological .yaml input?

@decke
Copy link
Contributor Author

decke commented May 20, 2022

Yes, that is also what I understand. Don't know exactly how excessive though. But it's nothing to freak out.

@decke
Copy link
Contributor Author

decke commented May 31, 2022

Some people might see this because of the GitHub Advistory for CVE-2022-28948 in yaml.v3. Looks like yaml.v2 is not affected according to upstream discussions. So yaml.v2 is okay, yaml.v3 3.0.1 is also okay.

go-yaml/yaml#666

@decke
Copy link
Contributor Author

decke commented May 31, 2022

For reference I also tried to update ff to yaml.v3 3.0.1 and it works fine as well. Please let me know if you prefer that and I can update the PR if you want.

@peterbourgon
Copy link
Owner

I'm not really a fan of automatic dependency updates in libraries like ff, because unless that update solves a specific problem, I don't think it accomplishes anything. Go permits multiple major versions of modules in a single binary, so if ff requires v2 and your application requires v3 there's no problem. And within a single major version, the ultimate decision is made by the application, so if ff requires v2.1.0 and your application requires v2.5.0 then you get v2.5.0.

With that said, I appreciate the thought and effort!

@decke
Copy link
Contributor Author

decke commented May 31, 2022

I know all of this but it is not an effort to do automatic updates. The reasons behind it are to avoid known vulnerabilities.

@peterbourgon
Copy link
Owner

I know all of this but it is not an effort to do automatic updates. The reasons behind it are to avoid known vulnerabilities.

My understanding was that your linked CVEs don't actually apply to the yaml and toml dependencies used by this module?

I mean, no big deal in this case.

@peterbourgon peterbourgon merged commit ec0e9e8 into peterbourgon:main May 31, 2022
@decke
Copy link
Contributor Author

decke commented Jun 1, 2022

Thanks for merging.

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.

None yet

2 participants