CVE-2026-133756
Redirección abierta en symfony/html-sanitizer
En resumen
NVD publicó la calificación, pero sin detalle suficiente para describir el ataque.
Cómo se ataca
- Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
- No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
- No necesita usuario ni contraseña.
- Necesita que alguien haga algo, como abrir un archivo, visitar una página o hacer clic en un enlace.
Cómo corregirla
- Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
- Aplique la actualización o la mitigación que indica el fabricante.
- 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
- Redirigir solo a rutas internas del mismo sitio o a una lista cerrada de dominios.
- Usar identificadores en lugar de direcciones completas (por ejemplo, ?destino=perfil).
- En OAuth, registrar las direcciones de retorno exactas.
A qué afecta
Symfony · symfony/html-sanitizer
desde 6.1.0 hasta antes de 6.4.51; desde 7.0.0 hasta antes de 7.4.24; desde 8.0.0 hasta antes de 8.1.12
Symfony · symfony/symfony
desde 6.1.0 hasta antes de 6.4.51; desde 7.0.0 hasta antes de 7.4.24; desde 8.0.0 hasta antes de 8.1.12
Qué es: Redirección abierta
La aplicación redirige a la dirección que indique un parámetro, y un atacante la usa para que un enlace del sitio legítimo lleve a un sitio falso.
Páginas como /login?next=… o /salir?url=… envían al usuario a otra dirección. Si aceptan cualquier dominio, un correo de phishing puede mostrar un enlace real de la empresa que termina en una página falsa. También sirve para robar tokens en flujos de inicio de sesión (OAuth).
Guía completa: dónde aparece, cómo se corrige y qué evitarDescripción oficial (en inglés)
MetaRefreshAttributeSanitizer checks the URL of a <meta http-equiv="refresh"> directive only when its content starts with a refresh time. Since the fix for CVE-2026-121373, only the ASCII whitespace of the HTML specification could come before that time. Chromium-based browsers also skip a vertical tab and the Unicode spaces U+1680, U+2000 to U+200A, U+2028, U+205F and U+3000. When the time followed one of these characters, the sanitizer returned the value unchanged. Its URL wasn't checked against allowLinkHosts() and allowLinkSchemes(), and Chromium followed it: $sanitizer->sanitizeFor('head', "<meta http-equiv=\"refresh\" content=\"\u{3000}0;url=https://evil.example/\">"); // returned unchanged, and Chromium redirects to https://evil.example/ The vertical tab is a regression of the fix for CVE-2026-121373, since the expression used before matched it. The Unicode spaces have been accepted since the sanitizer of meta refresh directives exists. This requires the configuration of CVE-2026-121373: meta elements allowed with their http-equiv and content attributes, for example with allowStaticElements(), and content sanitized with sanitizeFor('head', ...). Firefox and Safari skip only ASCII whitespace there. The sanitizer now skips controls, Unicode whitespace and invisible characters before the time, so that it checks the URL of these directives too.