CVE-2026-41401

published 26 May 2026 · updated 16 Nov 2026

libyang - Heap Use-After-Free Write in XML Metadata Parsing

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 5.4.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
libyang<5.4.35.4.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-41401 severity on Zeptric[![CVE-2026-41401](https://zeptric.io/badge/cve/CVE-2026-41401.svg)](https://zeptric.io/cve/CVE-2026-41401)