Skip to content

Updating Snakeyaml to v2 has a breaking API #161

Open
@wilhaddenIBM

Description

@wilhaddenIBM

In order to resolve CVE-2022-1471 it is necessary to update snakeyaml to at least version 2.0.
Doing this causes this line to fail at runtime as there is no longer a no args constructor for SafeConstructor

final Yaml yamlMapper = new Yaml(new SafeConstructor());

A potential fix is to add an argument to SafeConstructor like

new SafeConstructor(new LoaderOptions())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions