{"answers":{"affected":"2 open source packages ship an affected version, including github.com/sparkle-project/Sparkle. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47121 exists.","fix":"Upgrade github.com/sparkle-project/Sparkle to 2.9.2 or later.","what":"CVE-2026-47121 is a medium-severity path traversal vulnerability in sparkle-project Sparkle, published on 21 Jul 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-47121 and fix it if it is affected.\n\nWhat it is: CVE-2026-47121 is a medium-severity path traversal vulnerability in sparkle-project Sparkle, published on 21 Jul 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-47121 exists.\n\nAffected packages and fixed versions:\n- github.com/sparkle-project/Sparkle (SwiftURL): affected all versions; fixed in 2.9.2\n- github.com/sparkle-project/Sparkle (SwiftURL): affected all versions; fixed in 2.9.2\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-47121/ (Markdown: https://insights.sbomify.com/CVE-2026-47121/index.md)","id":"CVE-2026-47121","markdown":"https://insights.sbomify.com/CVE-2026-47121/index.md","name":"CVE-2026-47121","record":{"aliases":["GHSA-hg88-v3cw-3qrh"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"macOS update framework","requires_auth":"none","summary":"A path traversal in Sparkle allows arbitrary file writes if a signing key is compromised, enabling root-level code execution during updates.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sparkle","vendor":"sparkle-project"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Sparkle is a software update framework for macOS. Prior to version 2.9.2, `Autoupdate/SUBinaryDeltaApply.m` enforces `relativePath.pathComponents containsObject:@\"..\"` and rejects writes whose immediate parent directory IS itself a symbolic link, but does not detect symlinks deeper in the relative path. `Autoupdate/SPUSparkleDeltaArchive.m`'s `extractItem:` will create symlinks in the destination tree from archive content (no `..` check on the symlink target), and a subsequent `Extract` item targeting `\u003csymlink\u003e/foo/bar` then escapes the destination tree via `fopen(path, \"wb\")` because the kernel resolves the intermediate symlink during the open call. This is a defense-in-depth issue: exploitation requires a maliciously-crafted `.delta` that passes EdDSA signature verification, i.e. EdDSA private-key compromise. With the AppInstaller running as root for system-domain installs, it gives the holder of a stolen signing key arbitrary file write at root level via the delta-apply path, which is a strictly broader primitive than the \"drop-in replacement bundle\" install they would otherwise have. Version 2.9.2 contains a patch for the issue.","ecosystems":["SwiftURL"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Sparkle: Binary delta apply intermediate-symlink traversal in malicious .delta","id":"CVE-2026-47121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"SwiftURL","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Sparkle's AppInstaller post-stage-1 XPC listener accepts unvalidated connections, allowing spoofed appcast item data injection","id":"CVE-2026-47122"},"packages":[{"ecosystem":"SwiftURL","fixed":["2.9.2"],"introduced":["0"],"last_affected":[],"package":"github.com/sparkle-project/Sparkle","purl":null,"source":"GHSA-hg88-v3cw-3qrh"},{"ecosystem":"SwiftURL","fixed":["2.9.2"],"introduced":["0"],"last_affected":[],"package":"github.com/sparkle-project/Sparkle","purl":"pkg:swift/github.com/sparkle-project/Sparkle","source":"GHSA-hg88-v3cw-3qrh"}],"prev":{"headline":"Nezha Monitoring: RoleMember can fire other users' cron tasks via AlertRule.FailTriggerTasks (no ownership check)","id":"CVE-2026-47120"},"products":["Sparkle"],"published":"2026-07-21","related":[{"cvss_score":4.2,"headline":"Sparkle's AppInstaller post-stage-1 XPC listener accepts unvalidated connections, allowing spoofed appcast item data injection","id":"CVE-2026-47122","kev_date_added":null,"published":"2026-07-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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-07-22","vendors":["sparkle-project"]},"summary":"A path traversal in Sparkle allows arbitrary file writes if a signing key is compromised, enabling root-level code execution during updates.","url":"https://insights.sbomify.com/CVE-2026-47121/"}