CVE-2026-118599

epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install

Published Oct 31, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
A file overwrite vulnerability exists in Epiphany when installing WebExtension packages from .xpi files.

In src/webextension/ephy-web-extension-manager.c, decompress_xpi_thread() used libarchive with archive_read_support_format_all() (and filters), so the installer did not require a real ZIP. A TAR file named *.xpi was extracted. TAR supports hard-link entry types; with Epiphany's archive_write_disk options (including ARCHIVE_EXTRACT_PERM), a crafted hard-link target can cause an attacker-chosen existing user-writable file to be truncated and overwritten with attacker-controlled content and mode bits, without a dedicated warning dialog, when the user installs or opens the crafted .xpi.

This is related to but separate from the ZIP-slip path traversal fixed as CVE-2026-77679 (#2922 / MR !2143).

Requirements: the victim must install or open a malicious WebExtension (.xpi).

Affected: Epiphany >= 47.0 (WebExtension XPI install path).
Fixed: https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2248 (commit 0cc9ab55 — only enable ZIP format support).
Upstream: https://gitlab.gnome.org/GNOME/epiphany/-/work_items/2988
Reporter acknowledgment: Fernando Munoz

Analysis

AI-generated

Technical impact

Epiphany’s WebExtension installer processes *.xpi files using libarchive with support for all archive formats, so a non‑ZIP archive will be accepted. A crafted TAR file named .xpi with hard‑link entries can exploit the installer; the hard‑link target refers to an existing user‑writable file, causing that file to be truncated and overwritten with attacker‑controlled content and mode bits during extraction, and there is no warning dialog. When a user installs or opens such a package, the attacker can replace arbitrary files in the user’s profile—overwriting configuration, shell startup files, autostart entries, or authorized_keys—potentially enabling persistence or malware deployment. This exploit is categorized as a moderate‑severity issue with a CVSS score of 5.5.

Affected Systems

Epiphany (GNOME Web) versions 47.0 and later, which introduced WebExtension support and the path for installing .xpi files, are affected. All builds older than 47.0 are unaffected. The supplied patch in merge request 2248 restricts XPI handling to the ZIP format only.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate risk, and the EPSS score is not available so the likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a user to install or open a malicious WebExtension, making it a local privilege scenario dependent on user interaction. No network or elevated privileges are required by the attacker; however, once the payload is in place, it can affect the integrity and confidentiality of user data.

Remediation

Vendor Workaround

Do not install WebExtensions (.xpi) from untrusted sources. Prefer keeping WebExtensions disabled when unused (Epiphany can refuse install when the feature is disabled in recent fixes). After any untrusted .xpi install attempt, inspect unexpectedly modified user files (for example shell startup files, autostart desktop entries, or SSH authorized_keys). Upgrade to a fixed Epiphany build containing MR !2248 / commit 0cc9ab55 when available for your stream.


OpenCVE Recommended Actions

  • Upgrade Epiphany to a patched release that limits XPI handling to ZIP files (commit 0cc9ab55 on merge request 2248).
  • Avoid installing WebExtensions from unknown or untrusted sources; verify signatures and publisher reputation before installation.
  • If an upgrade is not possible, disable WebExtension support in Epiphany’s preferences or configure the extension loader to reject hard‑link entries during extraction.

Generated by OpenCVE AI on October 31, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A file overwrite vulnerability exists in Epiphany when installing WebExtension packages from .xpi files. In src/webextension/ephy-web-extension-manager.c, decompress_xpi_thread() used libarchive with archive_read_support_format_all() (and filters), so the installer did not require a real ZIP. A TAR file named *.xpi was extracted. TAR supports hard-link entry types; with Epiphany's archive_write_disk options (including ARCHIVE_EXTRACT_PERM), a crafted hard-link target can cause an attacker-chosen existing user-writable file to be truncated and overwritten with attacker-controlled content and mode bits, without a dedicated warning dialog, when the user installs or opens the crafted .xpi. This is related to but separate from the ZIP-slip path traversal fixed as CVE-2026-77679 (#2922 / MR !2143). Requirements: the victim must install or open a malicious WebExtension (.xpi). Affected: Epiphany >= 47.0 (WebExtension XPI install path). Fixed: https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2248 (commit 0cc9ab55 — only enable ZIP format support). Upstream: https://gitlab.gnome.org/GNOME/epiphany/-/work_items/2988 Reporter acknowledgment: Fernando Munoz A file overwrite vulnerability exists in Epiphany when installing WebExtension packages from .xpi files. In src/webextension/ephy-web-extension-manager.c, decompress_xpi_thread() used libarchive with archive_read_support_format_all() (and filters), so the installer did not require a real ZIP. A TAR file named *.xpi was extracted. TAR supports hard-link entry types; with Epiphany's archive_write_disk options (including ARCHIVE_EXTRACT_PERM), a crafted hard-link target can cause an attacker-chosen existing user-writable file to be truncated and overwritten with attacker-controlled content and mode bits, without a dedicated warning dialog, when the user installs or opens the crafted .xpi. This is related to but separate from the ZIP-slip path traversal fixed as CVE-2026-77679 (#2922 / MR !2143). Requirements: the victim must install or open a malicious WebExtension (.xpi). Affected: Epiphany >= 47.0 (WebExtension XPI install path). Fixed: https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2248 (commit 0cc9ab55 — only enable ZIP format support). Upstream: https://gitlab.gnome.org/GNOME/epiphany/-/work_items/2988 Reporter acknowledgment: Fernando Munoz
Title epiphany: epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install
References
Type Values Removed Values Added
First Time appeared Gnome
Gnome epiphany
Vendors & Products Gnome
Gnome epiphany
Type Values Removed Values Added
Description A file overwrite vulnerability exists in Epiphany when installing WebExtension packages from .xpi files. In src/webextension/ephy-web-extension-manager.c, decompress_xpi_thread() used libarchive with archive_read_support_format_all() (and filters), so the installer did not require a real ZIP. A TAR file named *.xpi was extracted. TAR supports hard-link entry types; with Epiphany's archive_write_disk options (including ARCHIVE_EXTRACT_PERM), a crafted hard-link target can cause an attacker-chosen existing user-writable file to be truncated and overwritten with attacker-controlled content and mode bits, without a dedicated warning dialog, when the user installs or opens the crafted .xpi. This is related to but separate from the ZIP-slip path traversal fixed as CVE-2026-77679 (#2922 / MR !2143). Requirements: the victim must install or open a malicious WebExtension (.xpi). Affected: Epiphany >= 47.0 (WebExtension XPI install path). Fixed: https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2248 (commit 0cc9ab55 — only enable ZIP format support). Upstream: https://gitlab.gnome.org/GNOME/epiphany/-/work_items/2988 Reporter acknowledgment: Fernando Munoz
Title epiphany: epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

threat_severity

Moderate

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
fedora
Published
Updated
Nov 6, 2026, 1:50 PM
Reserved
Oct 28, 2026, 4:47 PM
Status
Deferred
Published
Oct 31, 2026, 10:16 AM
Modified
Nov 6, 2026, 2:17 PM
Severity
Moderate
Public date
Oct 24, 2026, 12:00 AM