serde_yml crate is unsound and unmaintained
Moderate severity
GitHub Reviewed
Published
Sep 15, 2025
to the GitHub Advisory Database
•
Updated Sep 15, 2025
Description
Published to the GitHub Advisory Database
Sep 15, 2025
Reviewed
Sep 15, 2025
Last updated
Sep 15, 2025
Using
serde_yml::ser::Serializer.emittercan cause a segmentation fault, which is unsound.The GitHub project for
serde_ymlwas archived after unsoundness issues were raised.If you rely on this crate, it is highly recommended switching to a maintained alternative.
Recommended alternatives
serde_norway- Maintained fork ofserde_yaml, usingunsafe-libyaml-norwayserde_yaml_ng- Maintained fork ofserde_yaml, using unmaintainedunsafe-libyamlIncomplete pure Rust alternatives
These implementation do not rely on C
libyaml.serde_yaml2yaml-pegReferences