๐Ÿ” CVE Alert

CVE-2026-26028

MEDIUM 6.1

CryptPad: Sanitizer Bypass in Diffmarked.js Allows Arbitrary HTML Injection and Potential XSS

CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-116 CWE-79
Vendor cryptpad
Product cryptpad
Published May 20, 2026
Last Updated May 20, 2026
Stay Ahead of the Next One

Get instant alerts for cryptpad cryptpad

Be the first to know when new medium vulnerabilities affecting cryptpad cryptpad are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

cryptpad / cryptpad
< 2026.2.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v github.com: https://github.com/cryptpad/cryptpad/releases/tag/2026.2.0