CVE-2026-26028

CryptPad is an end-to-end encrypted collaborative office suite. In versions prior to 2026.2.0, the HTML sanitizer in Diffmarked.js can be bypassed due to incomplete attribute filtering on restricted tags. The sanitizer validates only the src attribute of <iframe>, <video>, and <audio> elements, leaving all other attributes unchecked. As a result, an attacker can inject arbitrary HTML through srcdoc, completely defeating CryptPad's intended bounce sandboxing and enabling link injection or other interactive content within user-controlled documents. The root cause lies in how the sanitizer classifies and enforces tag restrictions: although it defines both forbidden and restricted tag lists, <iframe> is treated as "restricted" rather than "forbidden." Enforcement then inspects only the src attribute, so pairing a benign blob: src with a malicious srcdoc results in unrestricted rendering. This issue has been fixed in version 2026.2.0.
Configurations

No configuration.

History

23 Jul 2026, 12:10

Type Values Removed Values Added
Summary
  • (es) CryptPad es una suite ofimática colaborativa cifrada de extremo a extremo. En versiones anteriores a la 2026.2.0, el saneador de HTML en Diffmarked.js puede ser eludido debido a un filtrado incompleto de atributos en etiquetas restringidas. El saneador valida solo el atributo src de los elementos <iframe>, <video> y <audio>, dejando todos los demás atributos sin verificar. Como resultado, un atacante puede inyectar HTML arbitrario a través de srcdoc, anulando por completo el sandboxing de rebote previsto de CryptPad y permitiendo la inyección de enlaces u otro contenido interactivo dentro de documentos controlados por el usuario. La causa raíz reside en cómo el saneador clasifica y aplica las restricciones de etiquetas: aunque define listas de etiquetas prohibidas y restringidas, <iframe> es tratado como 'restringido' en lugar de 'prohibido'. La aplicación luego inspecciona solo el atributo src, por lo que emparejar un src benigno de tipo blob: con un srcdoc malicioso resulta en una renderización sin restricciones. Este problema ha sido solucionado en la versión 2026.2.0.

20 May 2026, 20:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-20 20:16

Updated : 2026-07-23 12:10


NVD link : CVE-2026-26028

Mitre link : CVE-2026-26028

CVE.ORG link : CVE-2026-26028


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-116

Improper Encoding or Escaping of Output