Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. cryptpad
  4. ›
  5. CVE-2026-26028

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

May 26, 2026

CryptPad’s HTML sanitizer in Diffmarked.js can be bypassed due to incomplete filtering of restricted tags. Because the sanitizer only validates the src attribute of <iframe> <video>, and <audio> elements, and does not restrict other attributes, an attacker can inject arbitrary HTML through srcdoc. This completely defeats CryptPad’s intended bounce sandboxing and allows link injection or other interactive content inside user-controlled documents.

References

  • github.com/advisories/GHSA-g2g4-47gv-p72v
  • github.com/cryptpad/cryptpad/releases/tag/2026.2.0
  • github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v
  • nvd.nist.gov/vuln/detail/CVE-2026-26028

Code Behaviors & Features

Detect and mitigate CVE-2026-26028 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 5.9.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/cryptpad/CVE-2026-26028.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:44 +0000.