Skip to main content

CryptPad EUVDEUVD-2026-31154

| CVE-2026-26028 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-05-20 GitHub_M GHSA-g2g4-47gv-p72v
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Create CryptPad document with iframe srcdoc payload
  2. Delivery
    Share document link with target via social engineering
  3. Exploit
    Target opens document in browser
  4. Install
    Sanitizer passes iframe (blob: src accepted)
  5. C2
    srcdoc bypasses bounce sandbox
  6. Execute
    Arbitrary HTML rendered in CryptPad context
  7. Impact
    Link 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cryptpad < 2026.2.0

Affected Packages

npm cryptpad fix: 2026.2.0

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

Vendor (GitHub_M) PRIMARY 6.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
May 20, 2026 - 20:02 EUVD

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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy