CVE-2026-26028: CryptPad: Sanitizer Bypass in Diffmarked.js Allows Arbitrary HTML Injection and Potential XSS
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-26028?
CVE-2026-26028 is classified as a high-severity vulnerability due to its potential for arbitrary HTML injection leading to XSS attacks.
How do I fix CVE-2026-26028?
To fix CVE-2026-26028, upgrade your CryptPad installation to version 2026.2.0 or later.
What type of vulnerability is CVE-2026-26028?
CVE-2026-26028 is a sanitizer bypass vulnerability discovered in Diffmarked.js.
What versions of CryptPad are affected by CVE-2026-26028?
Versions of CryptPad prior to 2026.2.0 are affected by CVE-2026-26028.
What are the risks associated with CVE-2026-26028?
The risks include unauthorized execution of JavaScript due to cross-site scripting (XSS) attacks.