CVE-2026-77679: epiphany: path traversal in WebExtension XPI extraction (ZIP slip)
A path traversal (ZIP slip) vulnerability exists in Epiphany when installing WebExtension packages from .xpi files.
In src/webextension/ephy-web-extension-manager.c, the decompressxpithread() 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:
fullpath = gbuildfilename(path, archiveentrypathname(entry), NULL); archiveentrysetpathname(entry, fullpath); ret = archivewriteheader(ext, entry);
The libarchive extraction options did not include ARCHIVEEXTRACTSECURENODOTDOT or ARCHIVEEXTRACTSECURESYMLINKS. As a result, archive entries containing parent-directory traversal sequences (for example "../../../../../.bashrc") are written outside the intended webextensions extraction directory.
A malicious .xpi file can therefore overwrite arbitrary files writable by the user running Epiphany, such as ~/.bashrc, ~/.config/autostart/.desktop, or ~/.ssh/authorizedkeys. This can lead to persistent code execution on subsequent shell startup or GNOME login.
Exploitation 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.
Affected versions: Epiphany >= 47.rc. Fixed upstream in epiphany 50.6 and 49.9 via merge request !2143, which adds ARCHIVEEXTRACTSECURENODOTDOT and ARCHIVEEXTRACTSECURESYMLINKS to archivewritedisksetoptions(). Upstream report: https://gitlab.gnome.org/GNOME/epiphany/-/issues/2922
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
epiphanyto a version that resolves this vulnerability.Fixed in 49.9 - Upgrade
Upgrade
epiphanyto a version that resolves this vulnerability.Fixed in 50.6
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Users running GNOME Epiphany are exposed if they install or open a crafted WebExtension .xpi package. The attacker can overwrite files that are writable by the user running Epiphany.
What access does an attacker need?
An attacker needs to persuade the victim to install or open a malicious .xpi file. The provided information does not indicate that remote exploitation is possible without this user action.
What is the likely impact after a successful exploit?
A crafted archive can write outside Epiphany's web_extensions extraction directory, including to files such as ~/.bashrc, ~/.config/autostart/*.desktop, or ~/.ssh/authorized_keys. This can provide persistence and lead to code execution at a later shell startup or GNOME login.
How can I check for potential compromise?
Review user-writable startup and access-control files for unexpected changes, particularly ~/.bashrc, ~/.config/autostart/*.desktop, and ~/.ssh/authorized_keys. Also investigate WebExtension .xpi files that users installed or opened before the suspected changes.