HTML Sanitization Bypass in Diffmarked.js of CryptPad by CryptPad
CVE-2026-26028
What is CVE-2026-26028?
CryptPad, an end-to-end encrypted collaborative office suite, is vulnerable due to an incomplete HTML sanitizer in Diffmarked.js that permits attribute bypassing on specific tags. In versions before 2026.2.0, the sanitizer predominantly validates the src attribute for , , and tags, leaving other attributes unchecked. This oversight allows potential attackers to inject arbitrary HTML via the srcdoc attribute, undermining CryptPad's sandboxing mechanisms and leading to possible link injections or the introduction of interactive content within user-generated documents. The underlying issue stems from the treatment of the tag as 'restricted' rather than 'forbidden,' causing the sanitizer validation to focus narrowly on src attributes. This situation was addressed and resolved in version 2026.2.0.
Affected Version(s)
cryptpad < 2026.2.0
