GHSA-gfxp-f68g-8x78: LibYML `libyml::string::yaml_string_extend` Is Unsound And Unmaintained Vulnerability
HIGHGHSA-gfxp-f68g-8x78 is a HIGH `libyml::string::yaml_string_extend` is unsound and unmaintained vulnerability (CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior) affecting LibYML libraries in the crates.io ecosystem. The issue involves `libyml::string::yaml_string_extend` is unsound and unmaintained. Remediation is available in the latest vendor maintenance releases.
GHSA-gfxp-f68g-8x78 at a Glance
How to Fix GHSA-gfxp-f68g-8x78
To remediate this vulnerability, upgrade all affected LibYML dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade libyml to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for libyml
How to Check if You Are Affected
To determine whether your application is affected by GHSA-gfxp-f68g-8x78, inspect your project dependencies for LibYML:
inspect dependencies for libyml
Analyze the terminal output to locate any version of LibYML in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior, where the product uses an api function, data structure, or other entity in a way that relies on properties that are not always guaranteed to hold for that entity. In LibYML, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-gfxp-f68g-8x78 Affected LibYML Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libyml
|
crates.io |
≥ 0.0.4
≤ 0.0.5
|
|
References
Frequently Asked Questions
What is GHSA-gfxp-f68g-8x78?
Which LibYML versions are affected?
What version fixes GHSA-gfxp-f68g-8x78?
Is libyml affected?
What CWE is associated with GHSA-gfxp-f68g-8x78?
How can I check crates.io dependencies for GHSA-gfxp-f68g-8x78?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gfxp-f68g-8x78",
"modified" : "2025-09-15T13:57:29Z",
"published" : "2025-09-15T13:57:29Z",
"aliases" : [ ],
"summary" : "LibYML: `libyml::string::yaml_string_extend` is unsound and unmaintained",
"details" : "In version 0.0.4, `libyml::string::yaml_string_extend` was revised resulting in undefined behaviour, which is unsound.\n\nThe GitHub project for `libyml` was archived after unsoundness issues were raised.\n\nIf you rely on this crate, it is highly recommended switching to a maintained alternative.\n\n## Recommended alternatives\n\n- [`libyaml-safer`](https://crates.io/crates/libyaml-safer) \n- [`unsafe-libyaml-norway`](https://crates.io/crates/unsafe-libyaml-norway) - Maintained fork of `unsafe-libyaml`",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "libyml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.4"
}, {
"last_affected" : "0.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rustsec/advisory-db/issues/2395"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sebastienrousseau/libyml"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0067.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-758" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-15T13:57:29Z",
"nvd_published_at" : null
}
}