HTML Sanitization Bypass in Diffmarked.js of CryptPad by CryptPad
CVE-2026-26028

6.1MEDIUM

Key Information:

Vendor

Cryptpad

Status
Vendor
CVE Published:
20 May 2026

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

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.