Skip to content

Epiphany

epiphany: JavaScript code injection in autofill via unsanitized CSS selector from element id

CVE-2026-77682Published 27 Nov 2026, 06:46 UTC

Real-world risk

4.8/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.1

scored by CISA, CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from fedora)

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

Am I affected?

ProductAffected versions (from the sources)Fixed in
EpiphanyNiche>= 47.0, < 49.9; >= 50.0, < 50.649.9, 50.6

What to do

Update to a fixed version: 49.9, 50.6.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.700
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.7 × threat 0.854.760
  4. Rounded to one decimal between 0.1 and 104.8

How the score works

Exploitation and evidence timeline

  1. 27 Nov 2026 Published
  2. 3 Dec 2026 Risk 4.8 (cvss fallback)

Weakness

CWE-94

References

Get alerts for Epiphany

Free email or text alerts when a vulnerability in Epiphany reaches risk 8 or higher. Nothing else.