CVE-2026-77679: epiphany: path traversal in WebExtension XPI extraction (ZIP slip)

Published Nov 27, 2026
·
Updated

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

1 affected component
Gnome Epiphany>=47.rc

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade epiphany to a version that resolves this vulnerability.

    Fixed in 49.9
  2. Upgrade

    Upgrade epiphany to a version that resolves this vulnerability.

    Fixed in 50.6

Event History

Nov 27, 2026
CVE Published
via MITRE·06:22 AM
Data Sourced
via MITRE·06:22 AM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203