← Biblioteca de vulnerabilidades

CVE-2026-77682

Inyección de código en Epiphany

Sin calificarPublicada 27 de nov de 2026 · Actualizada 27 de nov de 2026

En resumen

Todavía no tiene calificación CVSS: NVD o el fabricante aún no la publican.

Cómo corregirla

  1. Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
  2. Aplique la actualización o la mitigación que indica el fabricante.
  3. Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.

Recomendaciones para este tipo de fallo

  • No evaluar texto del usuario como código ni como plantilla; pasarlo siempre como dato a una plantilla fija.
  • Usar el modo seguro (sandbox) del motor de plantillas o de expresiones si existe.
  • Aplicar los parches del fabricante: muchas de estas fallas están en frameworks.

A qué afecta

  • GNOME · Epiphany

    desde 47.0 hasta antes de 49.9; desde 50.0 hasta antes de 50.6

Qué es: Inyección de código

El programa evalúa como código algo que viene del usuario (eval, plantillas, expresiones), y el atacante ejecuta su propio código dentro de la aplicación.

Funciones como eval(), motores de plantillas (Jinja, Twig, Freemarker, Velocity) o lenguajes de expresiones (OGNL, SpEL, EL) interpretan texto como código. Si un dato del usuario llega ahí, el atacante ejecuta instrucciones con los permisos de la aplicación, lo que casi siempre termina en control del servidor.

Guía completa: dónde aparece, cómo se corrige y qué evitar

Descripción oficial (en inglés)

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