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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-02T18:55:04.978Z
- Modified: 2026-06-17T10:19:01.960Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- toeverything AFFiNE: < 0.25.4
- affine affine: before 0.25.4

## References

- <https://github.com/toeverything/AFFiNE/security/advisories/GHSA-67vm-2mcj-8965> (exploit, third-party-advisory)
- <https://github.com/toeverything/AFFiNE/pull/13864> (patch)
- <https://github.com/toeverything/AFFiNE/commit/c9a4129a3e9376b688c18e1dcd6c87a775caac80> (patch)

## Sources

- CVE List: [CVE-2026-21853](https://www.cve.org/CVERecord?id=CVE-2026-21853), CVE Terms of Use, modified 2026-03-02
- NVD: [CVE-2026-21853](https://nvd.nist.gov/vuln/detail/CVE-2026-21853), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-21853 · Whole record: https://cve.day/CVE-2026-21853.json · Rebuilt by cve.day 2026-11-25T22:59:15.111Z
