Affine
CVE-2026-21853
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious affine: URL
-
DeliveryEmbeds link in phishing content or compromised site
-
ExploitVictim clicks link
-
ExecutionBrowser invokes AFFiNE protocol handler
-
PersistApplication processes malicious payload
-
ImpactArbitrary code executes with app privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Victim must have AFFiNE application installed with the affine: custom protocol handler registered to the operating system (default installation behavior). Victim must click a malicious affine: URL link presented via a website, email, messaging application, or other content that renders clickable hyperlinks. Exploitation limits: requires user interaction (one click) and presence of vulnerable AFFiNE version on the target system. Attack succeeds against default AFFiNE configurations with no additional prerequisites beyond installation. The browser must permit custom protocol handlers (standard behavior in modern browsers). No authentication, non-default configuration, or specific feature enablement required within AFFiNE itself - vulnerability exists in the core URL handling mechanism. |
| Impact | CVSS 8.8 (High) reflects significant impact potential with network attack vector, low complexity, and no privileges required, though user interaction is mandatory (AV:N/AC:L/PR:N/UI:R). The UI:R requirement substantially reduces real-world exploitation risk compared to fully remote attacks. EPSS score of 0.17% (38th percentile) indicates below-average exploitation probability, consistent with the user interaction prerequisite and the application's relatively specialized user base compared to mainstream software. No CISA KEV listing confirms this is not actively exploited at scale. However, the one-click exploitation model (user clicks link → immediate RCE) presents genuine risk in social engineering scenarios, particularly for organizations using AFFiNE in production. Attack complexity is genuinely low once the victim clicks - no additional exploitation steps required. The CVSS scope is Unchanged (S:U), meaning impact is limited to the vulnerable application's security context, not the underlying system, though with High confidentiality, integrity, and availability impact within that context. Priority should be MEDIUM-HIGH for organizations actively deploying AFFiNE, but not critical infrastructure-level urgency given the interaction requirement and low EPSS. Patch is available and straightforward (version upgrade), making remediation cost low relative to risk. |
| Exploit ScenarioDerived | An attacker embeds a malicious affine://workspace?payload=[crafted_code] URL in a phishing email, social media post, or compromised legitimate website comment section. When a victim clicks the link, their browser recognizes the affine: scheme and automatically launches the installed AFFiNE application, passing the malicious payload. AFFiNE processes the URL without proper sanitization, executing the attacker's code with the privileges of the AFFiNE application process. The attacker gains immediate code execution to install malware, exfiltrate workspace data, or pivot to other systems accessible from the victim's machine. Publicly available exploit code exists via GitHub PR #13864 demonstrating the vulnerability mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 20, 2026
Remote code execution in AFFiNE workspace application (versions prior to 0.25.4) allows unauthenticated attackers to execute arbitrary code via malicious affine: URL handlers. Exploitation requires one user click on a crafted link or visiting a malicious website that auto-redirects to the malicious URL. The browser's custom protocol handler automatically launches AFFiNE and processes the payload without further user interaction, achieving RCE. EPSS score of 0.17% (38th percentile) suggests low observed exploitation activity. GitHub security advisory GHSA-67vm-2mcj-8965 confirms the vulnerability with upstream fix available in commit c9a4129a via PR #13864.
Earlier versions of this analysis (1)
all-in-one workspace and an operating system. versions up to 0.25.4 is affected by code injection (CVSS 8.8).
RemediationAI
Upgrade AFFiNE to version 0.25.4 or later, which contains the complete fix implemented in commit c9a4129a3e9376b688c18e1dcd6c87a775caac80 via pull request #13864. Organizations should prioritize patching internet-facing deployments and systems used by users who access external web content or untrusted user-generated content platforms. If immediate upgrade is not feasible, implement browser-level mitigations by disabling or unregistering the affine: protocol handler from the operating system (methods vary by OS: Windows Registry modification, macOS Launch Services, Linux .desktop file removal), though this prevents legitimate affine: link functionality and may disrupt normal workflow integration features. Network-level URL filtering to block affine: schemes at web proxies provides defense-in-depth but requires users to access AFFiNE through controlled channels. User awareness training about not clicking unknown links provides minimal protection given the one-click exploitation model. Patch advisory and technical details: https://github.com/toeverything/AFFiNE/security/advisories/GHSA-67vm-2mcj-8965 and https://github.com/toeverything/AFFiNE/pull/13864.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits AFFiNE's custom URL protocol handler (affine: scheme) registered with the operating system. Custom protocol handlers allow web browsers to launch desktop applications when specific URL schemes are encountered. The vulnerability stems from CWE-94 (Improper Control of Generation of Code / Code Injection), where the application fails to properly sanitize or validate data passed through the affine: URL scheme before processing it. When a crafted URL is invoked, the browser passes the malicious payload directly to the AFFiNE application, which executes embedded code without sufficient input validation. This attack pattern is common in Electron-based applications and similar desktop software that register custom protocol handlers. The affected product is AFFiNE workspace (cpe:2.3:a:affine:affine), an open-source productivity application, with all versions before 0.25.4 vulnerable.
Know when Affine 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:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
AFFiNE is an open-source, all-in-one workspace and an operating system. Prior to version 0.25.4, there is a one-click remote code execution vulnerability. This vulnerability can be exploited by embedding a specially crafted affine: URL on a website. An attacker can trigger the vulnerability in two common scenarios: 1/ A victim visits a malicious website controlled by the attacker and the website redirect to the URL automatically, or 2/ A victim clicks on a crafted link embedded on a legitimate website (e.g., in user-generated content). In both cases, the browser invokes AFFiNE custom URL handler, which launches the AFFiNE app and processes the crafted URL. This results in arbitrary code execution on the victim’s machine, without further interaction. This issue has been patched in version 0.25.4.
Executive ViewAI
CVE-2026-21853 is a high-severity remote code execution vulnerability in AFFiNE workspace application (versions before 0.25.4) that allows unauthenticated attackers to execute arbitrary code through malicious URL handlers, requiring only a user click on a crafted link. Organizations using AFFiNE face potential compromise of user systems and data if employees are socially engineered to click malicious links, making immediate remediation critical despite currently low observed exploitation activity.
No vendor-released patch identified at time of analysis; however, upstream fix available in AFFiNE commit c9a4129a (PR #13864). Interim mitigations: disable affine: custom protocol handler registration at the OS or browser level if upgrade cannot be deployed immediately; block affine: protocol at network/proxy level where applicable; implement user awareness training on suspicious link clicking and custom protocol handler risks; consider restricting AFFiNE usage to trusted internal networks only pending patch deployment.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
Authorization bypass in AFFiNE up to version 0.26.3 allows remote unauthenticated attackers to access restricted documen
Broken access control in AFFiNE (toeverything/AFFiNE monorepo) lets any authenticated workspace member read the edit his
all-in-one workspace and an operating system. versions up to 0.26.0 is affected by url redirection to untrusted site (op
NVD
CVE.org
EPSS
GitHub
Exploit-DB