Skip to content

Update swagger-parser version for known vulnerability #498

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

Closed
AlexandrosMor opened this issue Mar 27, 2023 · 3 comments · Fixed by #499
Closed

Update swagger-parser version for known vulnerability #498

AlexandrosMor opened this issue Mar 27, 2023 · 3 comments · Fixed by #499
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@AlexandrosMor
Copy link

AlexandrosMor commented Mar 27, 2023

Recently swagger-parser made a release to update the SnakeYAML. Recently, a vulnerability was discovered in SnakeYAML version 1.33 that could allow an attacker to execute arbitrary code during the deserialization process. To address this vulnerability, the SnakeYAML development team has released version 2.0, which includes several security enhancements and bug fixes.

The vulnerability in SnakeYAML 1.33 arises from the way the parser handles specially crafted YAML documents. An attacker could exploit this vulnerability by constructing a malicious YAML document that, when deserialized by SnakeYAML, executes arbitrary code on the system. This type of attack is known as a YAML deserialization attack.

To prevent this vulnerability, SnakeYAML 2.0 introduces several security measures. For example, the new version includes a safe constructor that restricts the types of objects that can be deserialized. It also includes a whitelist of safe classes that can be deserialized without risk of code execution.

In addition to these security enhancements, SnakeYAML 2.0 also includes several bug fixes and performance improvements. The new version is fully backwards-compatible with previous versions of SnakeYAML, so upgrading should be a straightforward process for most users.

Overall, the update to SnakeYAML from 1.33 to 2.0 is a critical security update that all users of SnakeYAML should install as soon as possible to protect against YAML deserialization attacks.

@joschi Are you planning to make a release soon ?

@joschi joschi added this to the 2.1.0 milestone Mar 27, 2023
@joschi joschi added the dependencies Pull requests that update a dependency file label Mar 27, 2023
@joschi
Copy link
Contributor

joschi commented Mar 27, 2023

Resolved via #499

@AlexandrosMor
Copy link
Author

any plans for release ? @joschi

@joschi
Copy link
Contributor

joschi commented Mar 27, 2023

@joschi joschi closed this as completed Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
2 participants