# CVE-2026-26028: CryptPad: Sanitizer Bypass in Diffmarked.js Allows Arbitrary HTML Injection and Potential XSS

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-05-20T18:51:43.643Z
- Modified: 2026-07-23T12:10:00.110Z
- Also known as: GHSA-g2g4-47gv-p72v
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cryptpad cryptpad: < 2026.2.0
- cryptpad (npm): up to 5.9.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v> (web)
- <https://github.com/cryptpad/cryptpad/releases/tag/2026.2.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26028> (advisory)
- <https://github.com/cryptpad/cryptpad> (package)

## Sources

- CVE List: [CVE-2026-26028](https://www.cve.org/CVERecord?id=CVE-2026-26028), CVE Terms of Use, modified 2026-05-20
- GitHub Advisory Database: [GHSA-g2g4-47gv-p72v](https://github.com/advisories/GHSA-g2g4-47gv-p72v), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2026-26028](https://nvd.nist.gov/vuln/detail/CVE-2026-26028), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-26028 · Whole record: https://cve.day/CVE-2026-26028.json · Rebuilt by cve.day 2026-11-25T22:59:22.059Z
