Skip to content
OpenAdvisories
Medium GHSA-hhw4-xg65-fp2x RUSTSEC-2025-0068

serde_yml crate is unsound and unmaintained

Published Sep 15, 2025 · Updated Oct 28, 2025 · Assigned by GHSA

Description

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`](https://crates.io/crates/serde_norway) - Maintained fork of `serde_yaml`, using `unsafe-libyaml-norway`
- [`serde_yaml_ng`](https://crates.io/crates/serde_yaml_ng) - Maintained fork of `serde_yaml`, using unmaintained `unsafe-libyaml`

## Incomplete pure Rust alternatives

These implementation do not rely on C `libyaml`.

- [`serde_yaml2`](https://crates.io/crates/serde_yaml2)
- [`yaml-peg`](https://crates.io/crates/yaml-peg)

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io serde_yml <= 0.0.12 — GHSA-hhw4-xg65-fp2x
crates.io serde_yml >= 0.0.0-0 — RUSTSEC-2025-0068

References