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.emitter
can cause a segmentation fault, which is unsound.The GitHub project for
serde_yml
was 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-norway
serde_yaml_ng
- Maintained fork ofserde_yaml
, using unmaintainedunsafe-libyaml
Incomplete pure Rust alternatives
These implementation do not rely on C
libyaml
.serde_yaml2
yaml-peg
References