CVE-2026-41401
libyang - Heap Use-After-Free Write in XML Metadata Parsing
Reported by vulncheck · Published May 26, 2026
libyang before 5.4.3 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libyang | libyang | 5.4.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libyang | libyang | 0, 5.4.3 |
| libyang | libyang | 0, 5.4.3 |
| cesnet | libyang | 0 |
Timeline
- May 26, 2026 CVE Published
- May 27, 2026 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-41401
vulnetix vdb fixes CVE-2026-41401
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-41401/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GitHub Security Advisory (GHSA-9f49-8x56-jmjc) vendor-advisory
- https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c patch
- Anthropic CVD Finding ANT-2026-TZQ1KH7E third-party-advisory
- VulnCheck Advisory: libyang - Heap Use-After-Free Write in XML Metadata Parsing third-party-advisory