CVE-2026-26028
MEDIUM 6.1CVSS 3.1CryptPad has a Sanitizer Bypass in Diffmarked.js that 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.
- Published
- 20 May 2026
- Last modified
- 23 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-116CWE-79
- Also known as
- GHSA-g2g4-47gv-p72v
- Sources
- NVDJSONOSV GHSA-g2g4-47gv-p72vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | cryptpad | <= 5.9.0 |
References
- https://github.com/cryptpad/cryptpad/releases/tag/2026.2.0 · WEB
- https://github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-26028 · ADVISORY
- https://github.com/cryptpad/cryptpad · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 20 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 May 2026)