Skip to content

Conversation

@lcharlois-neotys
Copy link

Hello,

This pull request is bumping snakeyaml to 2.0 and jackson (including jackson-databind) to 2.14.2.

There are CVEs linked to this libraries:

I understand that the CVE-2022-1471 is not applicable to swagger-parser because the SafeConstructor is used.

However, I see that snakeyaml has been updated to version 2.0 on swagger-core.
I'm also facing conflict issues in projects where there are imports from snakeyaml 1.30+ and 2.0.

IMO, it will be good that swagger-parser use snakeyaml 2.0.

I've made the minimal changes: updating libraries version and use default constructor that is now safe by default with 2.0.
Locally all tests are passing.

Regards,

@AlexandrosMor
Copy link

@lcharlois-neotys Can you update your branch ? Maybe that will help to get the approvals from the maintainers

@AlexandrosMor
Copy link

AlexandrosMor commented Mar 16, 2023

Hello @gracekarina @frantuma @char0n This is a know vulnerability in snakeyaml v1.33 please review it as the swagger-parser is used from multiple applications

@hbelmiro
Copy link

Quarkus 3.0.0.Alpha6 uses SnakeYaml 2.0, which breaks compatibility with swagger-parser. So, this bump is very important for Quarkus users.

Contextualization: quarkusio/quarkus#31594 (comment)

@cmuchinsky
Copy link

Here #1900 is a slightly different take on fixing this, which doesn't break compatibility with snakeyaml 1.33

@frantuma
Copy link
Contributor

frantuma commented Apr 4, 2023

closing as replaced by #1906

@frantuma frantuma closed this Apr 4, 2023
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.

5 participants