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.
References
| Link | Resource |
|---|---|
| https://github.com/toeverything/AFFiNE/commit/c9a4129a3e9376b688c18e1dcd6c87a775caac80 | Patch |
| https://github.com/toeverything/AFFiNE/pull/13864 | Patch |
| https://github.com/toeverything/AFFiNE/security/advisories/GHSA-67vm-2mcj-8965 | Exploit Third Party Advisory |
Configurations
History
20 Apr 2026, 14:53
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Affine
Affine affine |
|
| Summary |
|
|
| References | () https://github.com/toeverything/AFFiNE/commit/c9a4129a3e9376b688c18e1dcd6c87a775caac80 - Patch | |
| References | () https://github.com/toeverything/AFFiNE/pull/13864 - Patch | |
| References | () https://github.com/toeverything/AFFiNE/security/advisories/GHSA-67vm-2mcj-8965 - Exploit, Third Party Advisory | |
| CPE | cpe:2.3:a:affine:affine:*:*:*:*:*:*:*:* |
02 Mar 2026, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-02 19:16
Updated : 2026-04-20 14:53
NVD link : CVE-2026-21853
Mitre link : CVE-2026-21853
CVE.ORG link : CVE-2026-21853
JSON object : View
Products Affected
affine
- affine
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
