Medium severity · published May 20, 2026
CVE-2026-26028
CryptPad: Sanitizer Bypass in Diffmarked.js Allows Arbitrary HTML Injection and Potential XSS
6.1
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 15% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CR
cryptpad · cryptpad
< 2026.2.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-26028
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-26028
github.com
https://github.com/cryptpad/cryptpad/releases/tag/2026.2.0
github.com
https://github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v
More from cryptpad
9.1
CVE-2025-49591
CryptPad 2FA Bypass Vulnerability
7.5
CVE-2025-51846
CryptPad unbounded WebSocket frame flood
6.1
CVE-2025-49590
CryptPad Dom-Based Cross-Site Scripting (XSS) Vulnerability
