Vulnerability library
Security checkMay 26, 2026

CryptPad has a Sanitizer Bypass in Diffmarked.js that Allows Arbitrary HTML Injection and Potential XSS

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmcryptpad

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 5.9.0

References

Could your website be exposed too?

SmartScanner can check your website for CryptPad has a Sanitizer Bypass in Diffmarked.js that Allows Arbitrary HTML Injection and Potential XSS and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 26, 2026