AI Science Tracker

libyang XML metadata parser use-after-free

libyang · AI involvement attributed to Claude Mythos Preview

Finding and attribution

A heap use-after-free write occurs while XML data parsing updates its metadata list. Trail of Bits confirmed the finding and the CVD record provides an upstream fix. The CVD report identifies static analysis and no dynamic reproduction.

Product: libyang. AI system: Claude Mythos Preview. Team / organization: Anthropic / Trail of Bits.

CVE identifiers: CVE-2026-41401.

AI and human contribution (source account): Anthropic CVD names Claude Mythos Preview and Trail of Bits marks the finding true positive.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: Public vulnerability and AI-discovery attribution are documented. Sources do not establish exploitation in the wild or zero-day status.

Remediation status: fix documented. Fixed in libyang 5.4.3; advisory describes affected releases below 5.4.3.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 20 May 2026. AI attribution dated 20 May 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: Medium · highest recorded score 6.9. Documented technical effects: code execution, denial of service.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-41401: code execution, denial of service.
Prerequisites / affected scope: The CNA description states: 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..
Exploitation evidence: Exploitation in the wild is not established by the cited description.. Impact source · checked 16 Nov 2026.

Documented fix: Fixed in libyang 5.4.3; advisory describes affected releases below 5.4.3.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases