{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41401 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-41401 is a medium-severity use after free vulnerability in libyang, published on 26 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41401 and fix it if it is affected.\n\nWhat it is: CVE-2026-41401 is a medium-severity use after free vulnerability in libyang, published on 26 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41401 exists.\n\nAffected product: libyang. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41401/ (Markdown: https://insights.sbomify.com/CVE-2026-41401/index.md)","id":"CVE-2026-41401","markdown":"https://insights.sbomify.com/CVE-2026-41401/index.md","name":"CVE-2026-41401","record":{"aliases":["AZL-87354","DEBIAN-CVE-2026-41401","GHSA-9f49-8x56-jmjc","GHSA-v7jp-vmx6-5429","MGASA-2026-0302","UBUNTU-CVE-2026-41401","USN-8485-1","openSUSE-SU-2026:10868-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"YANG data library","requires_auth":"low_privilege","summary":"Attackers can trigger a heap use-after-free write in libyang via crafted XML, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"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.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"libyang - Heap Use-After-Free Write in XML Metadata Parsing","id":"CVE-2026-41401","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"OpenClaw \u003c 2026.3.31 - Webhook Replay Cache Cross-Target messageId Scope Bypass","id":"CVE-2026-41402"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.13.6-2.1"],"introduced":["0"],"last_affected":[],"package":"libyang","purl":"pkg:rpm/opensuse/libyang\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10868-1"}],"prev":{"headline":"OpenClaw \u003c 2026.3.31 - Resource Consumption via Oversized WebSocket Frames in voice-call","id":"CVE-2026-41400"},"products":["libyang"],"published":"2026-05-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["libyang"]},"summary":"Attackers can trigger a heap use-after-free write in libyang via crafted XML, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2026-41401/"}