Skip to content

Update SnakeYAML-Engine to 3.0.1#781

Merged
hsbt merged 1 commit intoruby:masterfrom
headius:update_snakeyaml
Mar 15, 2026
Merged

Update SnakeYAML-Engine to 3.0.1#781
hsbt merged 1 commit intoruby:masterfrom
headius:update_snakeyaml

Conversation

@headius
Copy link
Contributor

@headius headius commented Mar 14, 2026

There are two CVEs in Guava, which is a test-scoped dependency of this library. Guava is not shipped with the library so these CVEs do not affect users, but the dependency may trigger security tools. We update to avoid this false positive.

https://www.cve.org/CVERecord?id=CVE-2023-2976

https://www.cve.org/CVERecord?id=CVE-2020-8908

Fixes #780

There are two CVEs in Guava, which is a test-scoped dependency of
this library. Guava is not shipped with the library so these CVEs
do not affect users, but the dependency may trigger security tools.
We update to avoid this false positive.

https://www.cve.org/CVERecord?id=CVE-2023-2976

https://www.cve.org/CVERecord?id=CVE-2020-8908

Fixes ruby#780
@hsbt hsbt merged commit 599f89d into ruby:master Mar 15, 2026
82 checks passed
@headius headius deleted the update_snakeyaml branch March 16, 2026 03:29
@chadlwilson
Copy link
Contributor

chadlwilson commented Mar 17, 2026

snakeyaml-engine 3.x requires Java 11. Was it intentional to drop support for Java 8?

https://bitbucket.org/snakeyaml/snakeyaml-engine/wiki/Changes

The tests here don't run across java versions sufficiently to validate these types of things; they just use either the actions runner default JDK or the latest default on the given Ubuntu version.

@chadlwilson
Copy link
Contributor

chadlwilson commented Mar 17, 2026

If this was unintentional, and you're open to it, im happy to either submit a PR to

  1. run tests under java 8 and a min supported JRuby version (not solely jruby-head)
  2. OR to use deterministic supported java versions for each JRuby version under test
  3. OR to just use a standard maven plugin to check the jar dependencies are java 8 compatible via the existing Mavenfile

#1 may be more maintainable & understandable for non Java experts in the team (and also validate the code under 8 via tests), but does add more to the build.

For @hsbt benefit, JRuby 9.3 (EOL but still supported by this gem via its constraints) and 9.4 (nearing EOL) both support Java 8. JRuby 10.0+ supports Java 21 minimum.

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.

jruby: CVEs in transitive dependencies for snakeyaml 2.10

3 participants