Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCreate CryptPad document with iframe srcdoc payload
-
DeliveryShare document link with target via social engineering
-
ExploitTarget opens document in browser
-
InstallSanitizer passes iframe (blob: src accepted)
-
C2srcdoc bypasses bounce sandbox
-
ExecuteArbitrary HTML rendered in CryptPad context
-
ImpactLink injection or phishing content delivered to victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | The attacker must be able to create or edit a CryptPad document and share its link with a target - no authentication against the victim's account is required, and CryptPad's anonymous document creation feature means even unauthenticated external users can author documents. User interaction is required: the victim must open the shared document link in a browser (UI:R per CVSS). Exploitation is limited to CryptPad instances running versions prior to 2026.2.0 where the vulnerable Diffmarked.js sanitizer is active. The attack does not require any non-default configuration - document creation and sharing are core default features. Exploitation is constrained to low confidentiality and integrity impact (C:L/I:L) within the changed scope; it does not provide direct host-level access or full account takeover based on available data. |
| Impact | The CVSS 6.1 Medium score is driven by a network-accessible (AV:N), low-complexity (AC:L), unauthenticated (PR:N) attack that requires user interaction (UI:R) and produces a scope change (S:C) with low confidentiality and integrity impact (C:L/I:L/A:N). The scope change is the most significant signal here: the sandbox boundary is crossed, meaning exploitation is not confined to the document context. Real-world risk is elevated beyond raw score because CryptPad's core use case is document sharing - an attacker can trivially socially engineer a target into opening a crafted document, fulfilling the UI:R requirement with minimal friction. No EPSS score was provided in the source data; no KEV listing exists; and no public exploit code has been identified at time of analysis. However, the attack is conceptually straightforward (crafting a malicious iframe attribute requires no specialized tooling), so the absence of a public POC does not meaningfully lower practical risk for organizations actively using CryptPad. There is no data conflict: the CVSS network vector is consistent with the description's web-based document delivery mechanism. |
| Exploit ScenarioDerived | An attacker crafts a CryptPad document containing an <iframe> element with a blob: src value (which passes the sanitizer's attribute check) and a srcdoc attribute embedding arbitrary HTML - for example, a convincing phishing page or a script that redirects users to a credential-harvesting site. The attacker shares the document link with a target user; when the victim opens the document in their browser, CryptPad renders the srcdoc content as inline HTML outside the intended bounce sandbox, presenting the injected content within the trusted CryptPad interface. No public exploit code has been identified at time of analysis, but the technique requires only standard HTML authoring knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
HTML sanitizer bypass in CryptPad's Diffmarked.js allows remote unauthenticated attackers to inject arbitrary HTML into collaborative documents, completely defeating the platform's bounce sandboxing mechanism. All CryptPad versions prior to 2026.2.0 are affected; the CVSS scope change (S:C) reflects that exploitation crosses sandbox boundaries, enabling link injection and delivery of malicious interactive content to any user who opens a crafted document. No public exploit code has been identified at time of analysis and this CVE is not listed in CISA KEV, though the attack vector is network-accessible with no authentication required.
RemediationAI
The primary fix is to upgrade CryptPad to version 2026.2.0 or later, which resolves the incomplete attribute filtering in Diffmarked.js. The patched release is confirmed at https://github.com/cryptpad/cryptpad/releases/tag/2026.2.0 and the security advisory is published at https://github.com/cryptpad/cryptpad/security/advisories/GHSA-g2g4-47gv-p72v. For self-hosted deployments that cannot immediately upgrade, a compensating control would be to restrict document sharing to trusted internal users only, limiting the attacker's ability to deliver crafted documents to targets - however, this trade-off significantly degrades collaboration functionality. Disabling the rich-text or markdown editor features that invoke Diffmarked.js would mitigate the attack surface but would render core document editing unusable. There is no partial patch or configuration flag available; upgrading to 2026.2.0 is the only fully effective remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CryptPad is an end-to-end encrypted collaborative office suite; Diffmarked.js is its HTML sanitizer component responsible for enforcing content security within user documents. The root cause is CWE-116 (Improper Encoding or Escaping of Output): the sanitizer defines both a 'forbidden' and a 'restricted' tag list, but incorrectly classifies <iframe>, <video>, and <audio> as 'restricted' rather than 'forbidden.' Enforcement logic for restricted tags inspects only the src attribute - requiring a benign blob: URL - while leaving all other attributes, including srcdoc, completely unchecked. The HTML srcdoc attribute allows an entire HTML document to be rendered inline inside an iframe, so pairing a blob: src (which passes the check) with a malicious srcdoc payload results in unrestricted HTML rendering. This bypasses CryptPad's intended bounce sandbox design, which relies on isolating untrusted content in sandboxed iframes. The affected CPE is cpe:2.3:a:cryptpad:cryptpad:*:*:*:*:*:*:*:* covering all versions prior to 2026.2.0.
Know when Cryptpad gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
CryptPad versions prior to 2025.3.0 contain a critical authentication bypass vulnerability that allows attackers to circ
CryptPad is a collaboration suite. Prior to version 2025.3.0, the "Link Bouncer" functionality attempts to filter javasc
Remote denial-of-service in CryptPad 2025.3.1 allows unauthenticated attackers to flood WebSocket frames and degrade or
The pad management logic in XWiki labs CryptPad before 3.0.0 allows a remote attacker (who has access to a Rich Text pad
Cross-site scripting (XSS) vulnerability in pad export in XWiki labs CryptPad before 1.1.1 allows remote attackers to in
EUVD-2026-31154
GHSA-g2g4-47gv-p72v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB