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 snakeyaml dependency to 2.0 #974

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

VinceMacBuche
Copy link
Contributor

Related to #973

snakeyaml 1.33 is vulnerable to cve CVE-2022-1471, which has a severity high or critical depending on different analysis https://nvd.nist.gov/vuln/detail/CVE-2022-1471

zio-json-yaml uses the vulnerable constructor, but 2.0 fixes the issue: https://www.veracode.com/blog/research/resolving-cve-2022-1471-snakeyaml-20-release-0

2.0 removes deprecated constructor for SafeConstructor class, so we should use another one, using a default LoaderOptions, like the previous constructor (diff of old constructor: https://bitbucket.org/snakeyaml/snakeyaml/diff/src/main/java/org/yaml/snakeyaml/constructor/SafeConstructor.java?at=master&diff2=3e755d254aeaa902675053047fd53368a175565a )

I removed the nowarn annotation, because it triggers a warning, since there is no warning anymore (because of uage of deprecated constructor)

@VinceMacBuche VinceMacBuche requested a review from a team as a code owner June 29, 2023 22:14
@CLAassistant
Copy link

CLAassistant commented Jun 29, 2023

CLA assistant check
All committers have signed the CLA.

@fsvehla
Copy link
Contributor

fsvehla commented Jun 30, 2023

Failures in mdoc.

@VinceMacBuche
Copy link
Contributor Author

forgot unsused import ! I made another commit, do you want me to squash it or leave it like that ?

@fsvehla fsvehla merged commit 13fa6d9 into zio:series/2.x Jul 3, 2023
22 checks passed
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.

3 participants