{"answers":{"affected":"1 open source package ship an affected version, including cesnet/libyang.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-136907 exists.","exposure":"An affected version is only exploitable if your software calls ly_in_filepath(). Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-136907 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-136907 is a medium-severity security feature bypass vulnerability in CESNET libyang, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-136907 and fix it if it is affected.\n\nWhat it is: CVE-2026-136907 is a medium-severity security feature bypass vulnerability in CESNET libyang, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-136907 exists.\nExposure: An affected version is only exploitable if your software calls ly_in_filepath(). Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- cesnet/libyang (GitHub): affected all versions up to 6.4.13; no fix listed\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.\n   If an affected version is present, also search the code for calls to ly_in_filepath() and report whether any exist.\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-136907/ (Markdown: https://insights.sbomify.com/CVE-2026-136907/index.md)","id":"CVE-2026-136907","markdown":"https://insights.sbomify.com/CVE-2026-136907/index.md","name":"CVE-2026-136907","record":{"aliases":["AZL-116173","GHSA-3fmm-4mh3-vx58","UBUNTU-CVE-2026-136907"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"no_fix_stated","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"YANG parsing library","requires_auth":"none","requires_specific_call":true,"summary":"Applications switching libyang's input handler to a nonexistent file may still parse the previous file, exposing stale data.","user_interaction":"not_required","vuln_class":"security_feature_bypass","vulnerable_functions":["ly_in_filepath()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"VulnCheck","component":null,"cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-393","name":"Return of Wrong Status Code"}],"description":"CESNET libyang through 6.4.13 contains a return of wrong status code vulnerability in ly_in_filepath() in src/in.c that reports success when a new file cannot be opened or mapped. Attackers who make an application switch a reused input handler to a nonexistent or empty file cause it to parse the previously loaded file's data as the requested input.","ecosystems":["GitHub"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"libyang through 6.4.13 Wrong Status Code in ly_in_filepath()","id":"CVE-2026-136907","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":"cesnet/libyang","n_packages":1,"n_references":4,"n_vendor_status":0,"next":{"headline":"libyang through 6.4.13 Invalid Pointer Release via ly_in_memory()","id":"CVE-2026-136908"},"nickname":null,"packages":[{"ecosystem":"GitHub","fixed":[],"introduced":["0"],"last_affected":["6.4.13"],"name_kind":null,"package":"cesnet/libyang","purl":"pkg:github/cesnet/libyang","purl_source":"cna","scope":"upstream","source":"CVE-2026-136907"}],"prev":{"headline":"libyang through 6.4.13 File Descriptor Leak via ly_in_new_filepath()","id":"CVE-2026-136906"},"products":["libyang"],"published":"2026-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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","text_fixes":[],"updated":"2026-11-25","vendor_status":[],"vendors":["CESNET"]},"summary":"Applications switching libyang's input handler to a nonexistent file may still parse the previous file, exposing stale data.","url":"https://insights.sbomify.com/CVE-2026-136907/"}