CVE-2026-77682
epiphany: JavaScript code injection in autofill via unsanitized CSS selector from element id
Check your servers for CVE-2026-77682
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-77682 affects epiphany, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A code injection vulnerability exists in Epiphany when the user invokes form autofill from the context menu on a page containing a malicious HTML form.
In embed/web-process-extension/resources/js/ephy_autofill.js, getSelector() builds a CSS selector by directly interpolating an element's id attribute:
path.unshift(`#${el.id}`);
When the user selects an autofill entry, the browser process in embed/ephy-web-view.c previously constructed JavaScript using sprintf with the selector embedded in single quotes:
EphyAutofill.fill(PAGE_ID, 'SELECTOR', FILL_CHOICE);
Because SELECTOR comes from attacker-controlled page content and is not escaped, a crafted id such as a'); PAYLOAD; var _=(' breaks out of the string literal and executes arbitrary JavaScript when the script is evaluated.
The injected code runs in Epiphany's private autofill script world, which hosts EphyAutofill credential APIs and password manager save/request handlers. The reporter demonstrated a proof of concept that injects credentials into another domain and uses Ephy.permissionsManager to enumerate domains with special permissions. Full exfiltration of all saved passwords was not demonstrated but may be possible given the privileges of this context.
Exploitation requires the victim to visit a malicious page, right-click on a form field, and choose an Autofill context menu item. This is a deliberate user action but does not require installing software or entering credentials manually.
Affected versions: Epiphany >= 47.beta. Fixed upstream in epiphany 50.6 and 49.9 via merge request !2147, which replaces sprintf-based script evaluation with a WebKit user message and jsc_value_object_invoke_method() passing the selector as a typed string argument. Upstream report: https://gitlab.gnome.org/GNOME/epiphany/-/issues/2921
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.1% of all scored CVEs. Scores of 29 Nov 2026.
Weakness
- CWE-94 Improper Control of Generation of Code
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Epiphany
package
epiphany |
affected from 47.0, before 49.9 affected from 50.0, before 50.6
Other versions: unaffected
|
Is my server affected?
Find the installed version of epiphany and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i epiphany
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-77682 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-77682RHEL, Rocky, Alma, Fedora
rpm -q epiphany
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-77682Alpine
apk list --installed | grep -i epiphanyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-77682
trivy image --scanners vuln IMAGE | grep CVE-2026-77682
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-77682 access.redhat.com · vdb entry
- RHBZ#2520893 bugzilla.redhat.com · issue tracking
Other references
- https://gitlab.gnome.org/GNOME/epiphany/-/issues/2921 gitlab.gnome.org
- https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/2147 gitlab.gnome.org
Source: the record CVE-2026-77682 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse