CVE-2026-40259
Access Control in B3Log Siyuan ≤ 3.6.4
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-40259 is a high-severity Improper Authorization (CWE-285) vulnerability in B3Log Siyuan. Its CVSS base score is 8.1 (High).
Operationally, ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to AC-24 (Access Control Decisions) and AC-25 (Reference Monitor) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-40259 affects SiYuan, an open-source personal knowledge management system, in versions 3.6.3 and prior. The vulnerability resides in the /api/av/removeUnusedAttributeView endpoint, which is protected only by generic authentication accepting publish-service RoleReader tokens. The endpoint handler directly passes a caller-controlled id to a model function that unconditionally deletes the corresponding attribute view file from the workspace, without verifying the caller's write privileges or confirming the attribute view is unused. This improper authorization flaw, mapped to CWE-285, carries a CVSS v3.1 base score of 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
An attacker with authenticated access as a publish-service reader can exploit this by extracting publicly exposed data-av-id values from published content and submitting them to the vulnerable endpoint. This enables permanent deletion of arbitrary attribute view definitions across the workspace, disrupting database views and rendering functionality until manual restoration by an administrator.
The issue has been addressed in SiYuan version 3.6.4, as detailed in the project's release notes and GitHub security advisory GHSA-7m5h-w69j-qggg. Security practitioners should upgrade to the patched version and review access controls for publish-service roles to mitigate risks.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-23324
Vulnerability Data
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, the /api/av/removeUnusedAttributeView endpoint is protected only by generic authentication that accepts publish-service RoleReader tokens. The handler passes a caller-controlled id directly to a model function that unconditionally…
more
deletes the corresponding attribute view file from the workspace without verifying that the caller has write privileges or that the target attribute view is actually unused. An authenticated publish-service reader can permanently delete arbitrary attribute view definitions by extracting publicly exposed data-av-id values from published content, causing breakage of database views and workspace rendering until manually restored. This issue has been fixed in version 3.6.4.
- CWE(s)
Related Threats
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Mandates that access-control decisions are made and applied to each request before access occurs.
Requires a tamperproof, always-invoked reference monitor that performs authorization checks.
Directly requires enforcement of approved authorizations for every access request, stopping improper or missing checks.
Limits granted privileges so that even a bypassed check affects fewer resources.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
A.8.3's access restriction mechanisms — configuration controls, per-identity permissions, dynamic access management with authentication requirements — block most exploitation of missing or incorrect authorization checks at the system and configuration layer even when the application code itself has CWE-285; the remainder is application-level authorization flaws whose specific code paths are not fully covered by the system-level access controls A.8.3 mandates.
Independent reviewers evaluate whether authorization logic matches policy, thereby reducing the window in which incorrect or missing authorization checks remain in production.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-285, a class-level weakness. Rules are authored against its narrower children: CWE-552.