PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-41401 libyang CVE debrief

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.

Vendor
libyang
Product
Unknown
CVSS
MEDIUM 6.9
CISA KEV
Not listed in stored evidence
Original CVE published
2026-05-26
Original CVE updated
2026-11-08
Advisory published
2026-05-26
Advisory updated
2026-11-08

Who should care

Defenders responsible for applications that use libyang to parse untrusted XML data should assess their exposure to this vulnerability. This includes developers and security teams working with YANG XML data in various systems, especially those handling network configurations or other critical infrastructure data.

Why it matters

Defenders should care about CVE-2026-41401 because it affects libyang, a library used for parsing YANG XML data. The vulnerability can lead to process crashes or potential code execution if exploited. Relevant roles include developers and security teams working with YANG XML data, especially in systems handling network configurations or critical infrastructure data. The operational impacts include potential process crashes, possible code execution, the need for verification of libyang version and affected applications, and the importance of monitoring for suspicious XML parsing activities. Evidence from official sources is limited, so verification of exposure and remediation is necessary.

  • Potential process crashes due to exploitation
  • Possible code execution through crafted XML documents
  • Need for verification of libyang version and affected applications
  • Importance of monitoring for suspicious XML parsing activities

Technical summary

The libyang library before version 5.4.3 contains a heap use-after-free write vulnerability in the lyd_parser_set_data_flags function. This vulnerability occurs when the library incorrectly updates metadata list pointers while freeing non-head default metadata entries. An attacker can exploit this vulnerability by providing specially crafted YANG XML documents with specific metadata attributes to applications that parse untrusted XML data. This can cause process crashes or potentially lead to code execution.

Defensive priority

Defenders should prioritize verifying and updating libyang to version 5.4.3 or later, and review applications that parse untrusted XML data for potential exposure.

Recommended defensive actions

  • Verify libyang version and update to 5.4.3 or later
  • Review applications parsing untrusted XML data for potential exposure
  • Monitor for crafted YANG XML documents with specific metadata attributes
  • Perform vulnerability assessment for affected systems
  • Implement compensating controls for exposed systems
  • Track exceptions and retest remediated assets
  • Review and update incident response plans

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, but the scope of affected applications and versions requires further verification. Defenders should verify libyang version, review applications parsing untrusted XML data, and monitor for suspicious activities. Evidence from official sources is limited, so verification of exposure and remediation is necessary. The vulnerability affects libyang before version 5.4.3, and attackers can exploit it by submitting crafted YANG XML documents.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-41401 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-41401

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-41401 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-41401

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.