{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39977 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-39977 is a high-severity path traversal vulnerability in flatpak-builder, published on 9 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-39977 and fix it if it is affected.\n\nWhat it is: CVE-2026-39977 is a high-severity path traversal vulnerability in flatpak-builder, published on 9 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39977 exists.\n\nAffected product: flatpak-builder. 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-39977/ (Markdown: https://insights.sbomify.com/CVE-2026-39977/index.md)","id":"CVE-2026-39977","markdown":"https://insights.sbomify.com/CVE-2026-39977/index.md","name":"CVE-2026-39977","record":{"aliases":["DEBIAN-CVE-2026-39977","GHSA-6gm9-3g7m-3965","UBUNTU-CVE-2026-39977","openSUSE-SU-2026:10590-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Flatpak build tool","requires_auth":"none","summary":"Attackers can read arbitrary host files during Flatpak builds via crafted manifests, exposing sensitive data to build outputs.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flatpak-builder","vendor":"flatpak"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"flatpak-builder is a tool to build flatpaks from source. From 1.4.5 to before 1.4.8, the license-files manifest key takes an array of paths to user defined licence files relative to the source directory of the module. The paths from that array are resolved using g_file_resolve_relative_path() and validated to stay inside the source directory using two checks - g_file_get_relative_path() which does not resolve symlinks and g_file_query_file_type() with G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS which only applies to the final path component. The copy operation runs on host. This can be exploited by using a crafted manifest and/or source to read arbitrary files from the host and capture them into the build output. This vulnerability is fixed in 1.4.8.","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":"flatpak-builder has a path traversal leading to arbitrary file read on host when installing licence files","id":"CVE-2026-39977","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted Buffers","id":"CVE-2026-39979"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.4.8-1.1"],"introduced":["0"],"last_affected":[],"package":"flatpak-builder","purl":"pkg:rpm/opensuse/flatpak-builder\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10590-1"}],"prev":{"headline":"Laravel Passport's TokenGuard Authenticates Unrelated User for Client Credentials Tokens","id":"CVE-2026-39976"},"products":["flatpak-builder"],"published":"2026-04-09","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":"US public information, NVD API terms","name":"NVD"},{"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-04-09","vendors":["flatpak"]},"summary":"Attackers can read arbitrary host files during Flatpak builds via crafted manifests, exposing sensitive data to build outputs.","url":"https://insights.sbomify.com/CVE-2026-39977/"}