CVE-2026-77682 - epiphany: JavaScript code injection in autofill via unsanitized CSS selector from element id

Vulnerability · Reported by NVD · · CWE-94

Severity
High Estimated, NVD hasn't scored it yet
CVSS
– Not scored yet
Exploit chance (EPSS)
0.32% Higher than 17% of CVEs
Known exploited
No Not in CISA KEV

Summary

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. F

Type of weakness

This issue is classified as code injection (CWE-94).

Is it being exploited?

The EPSS model estimates a 0.32% chance this CVE will be exploited in the next 30 days, which is low and higher than 17% of all published CVEs.

Patch priority and what to do

Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.

Tags

CVE-2026-77682

Sources & references

NVD has not scored this CVE yet. The severity shown is an estimate from the article text and will be replaced automatically.

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.