Home › CVE › JavaScript
CVE-2026-77682 — GNOME Epiphany
One of 2 GNOME Epiphany vulnerabilities published together by NVD: our article covers all of them.
JavaScriptSafariDevOps / CIWebBrowsersVulnerabilitiesSummary
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
Weakness
- CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| GNOME Epiphany | ≥ 47.0, < 49.9 | 49.9 |
| ≥ 50.0, < 50.6 | 50.6 |
References by type
Patches and fixed releases
Other references
Affected
- GNOME Epiphany
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-77682?
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. Weakness type: Improper Control of Generation of Code ('Code Injection') (CWE-94).
How severe is CVE-2026-77682?
CVE-2026-77682 has not been given a CVSS score yet.
Is CVE-2026-77682 being exploited?
Not as far as is known: CVE-2026-77682 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026.
Which versions are affected by CVE-2026-77682?
GNOME Epiphany ≥ 47.0, < 49.9 (fixed in 49.9); GNOME Epiphany ≥ 50.0, < 50.6 (fixed in 50.6).
How do I fix CVE-2026-77682?
Update to a fixed release: GNOME Epiphany 49.9; GNOME Epiphany 50.6.
Timeline & sources
References
Related vulnerabilities & news
- CVE-2026-108153 — GitLab
- GitLab CE and EE Cross-Site Scripting in Wiki Pages Enables Script Execution (CVE-2026-105739)
- JetBrains TeamCity XSS Vulnerability in NPM Registry Build Feature
- Cybercriminals Exploit Optimizely Feature to Infect 178 Websites
- Optimizely Supply Chain Attack Compromised Major Websites