{"id":"CVE-2026-77679","aliases":[],"kind":"cve","tier":"hot","status":"published","title":"epiphany: path traversal in WebExtension XPI extraction (ZIP slip)","description":"A path traversal (ZIP slip) vulnerability exists in Epiphany when installing WebExtension packages from .xpi files.\n\nIn src/webextension/ephy-web-extension-manager.c, the decompress_xpi_thread() function extracts XPI archives (ZIP format) to disk using libarchive. For each archive entry, the output path is built by concatenating the intended extraction directory with the raw pathname from the archive:\n\n    full_path = g_build_filename(path, archive_entry_pathname(entry), NULL);\n    archive_entry_set_pathname(entry, full_path);\n    ret = archive_write_header(ext, entry);\n\nThe libarchive extraction options did not include ARCHIVE_EXTRACT_SECURE_NODOTDOT or ARCHIVE_EXTRACT_SECURE_SYMLINKS. As a result, archive entries containing parent-directory traversal sequences (for example \"../../../../../.bashrc\") are written outside the intended web_extensions extraction directory.\n\nA malicious .xpi file can therefore overwrite arbitrary files writable by the user running Epiphany, such as ~/.bashrc, ~/.config/autostart/*.desktop, or ~/.ssh/authorized_keys. This can lead to persistent code execution on subsequent shell startup or GNOME login.\n\nExploitation requires the victim to install or open a crafted .xpi file. The reporter notes that opening an XPI can trigger extraction even when the WebExtensions feature is not enabled by default.\n\nAffected versions: Epiphany >= 47.rc.\nFixed upstream in epiphany 50.6 and 49.9 via merge request !2143, which adds ARCHIVE_EXTRACT_SECURE_NODOTDOT and ARCHIVE_EXTRACT_SECURE_SYMLINKS to archive_write_disk_set_options().\nUpstream report: https://gitlab.gnome.org/GNOME/epiphany/-/issues/2922","ai_summary":{"text":"An attacker can use a crafted .xpi file to write arbitrary files outside the extraction directory via path traversal in Epiphany's WebExtension installation, enabling persistent code execution.","model":"claude-haiku-5-5","label":"AI summary"},"severity":"unknown","cvss":null,"scores":[],"cwe":["CWE-22"],"remote":null,"remote_unauth":null,"epss":null,"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"source":"cvelist","vendor":"GNOME","product":"Epiphany","versions":">= 47.0, < 49.9; >= 50.0, < 50.6"}],"ai_versions":{"affected":[{"text":"Epiphany versions from 47.rc onward are affected by the path traversal when installing WebExtension .xpi packages.","quote":"Affected versions: Epiphany >= 47.rc.","product":"epiphany"}],"fixed":[{"quote":"Fixed upstream in epiphany 50.6 and 49.9 via merge request !2143","product":"epiphany","version":"50.6"},{"quote":"Fixed upstream in epiphany 50.6 and 49.9 via merge request !2143","product":"epiphany","version":"49.9"}],"model":"claude-haiku-5-5","label":"AI-extracted versions"},"mitigation":"Upgrade Epiphany to 50.6 or later.","technologies":[{"slug":"linux-kernel","name":"Linux kernel","method":"ai"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-77679","kind":"other"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2520891","kind":"other"},{"url":"https://gitlab.gnome.org/GNOME/epiphany/-/issues/2922","kind":"other"},{"url":"https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2143","kind":"other"}],"workarounds":null,"vendors":["gnome"],"products":["epiphany"],"cpes":[],"published_at":"2026-11-27T06:22:55.615Z","modified_at":"2026-11-27T07:17:03.323Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77679"}],"links":{"html":"https://flawdb.com/CVE-2026-77679","markdown":"https://flawdb.com/CVE-2026-77679.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-77679"}}