Read the docs

Code injection in Epiphany autofill via crafted form element ID

Priority LOW 31CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-94.

Summary

GNOME Epiphany from 47.0 before 49.9 and from 50.0 before 50.6 is affected. Unescaped element id values are placed into a CSS selector, a code injection flaw (CWE-94). If a user right-clicks a form field on a malicious page and chooses an Autofill item, injected JavaScript runs in Epiphany's autofill script world. The reporter demonstrated a proof of concept that injects credentials into another domain.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00318 17th percentileScored 2026-11-30
Fix Fixed Epiphany (GNOME): 49.9, 50.6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
GNOMEEpiphany47.0 to before 49.9; 50.0 to before 50.649.9, 50.6Patch availableCNA
  • Epiphany VendorGNOME Affected 47.0 to before 49.9; 50.0 to before 50.6 Fixed in 49.9, 50.6 Patch available CNA

Remediation

Upgrade GNOME Epiphany to 49.9 or 50.6, which contain the fix from merge request !2147.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA Epiphany (GNOME) Fixed in 49.9, 50.6

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    GNOME Epiphany 49.9, 50.6

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-99145 Path traversal in GNOME Epiphany lets XPI files overwrite user filesPriority LOW 26

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-27 Threatist record created from CVE-2026-77682
  2. 2026-11-27 Alias added: GHSA-8892-xp9x-wfv3
  3. 2026-11-30 CVSS score added · CISA ADP
  4. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2023-23091 Gnome-maps: gnome maps is vulnerable to a code injection attack (similar to xss) via its service.json CVSS 3.1CRITICAL 9.8
  • TI-2026-41775 Glib: off-by-one error in glib/gkeyfile.c via "g_key_file_get_locale_string_list" CVSS 3.1HIGH 8.6
  • TI-2026-41772 Glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_ymd via invalid gdatetime CVSS 3.1HIGH 7.5
  • TI-2026-03716 Libsoup: libsoup: denial of service via use-after-free in http/2 server CVSS 3.1HIGH 7.5
  • TI-2024-28393 Integer overflow in GNOME G Structured File Library CVSS 3.1HIGH 8.4
  • TI-2024-24253 Integer overflow in GNOME G Structured File Library CVSS 3.1HIGH 8.4
See all 417 →

Sources