Improper authorization in OpenCTI lets read-only users delete drafts
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-j2p5-vc4m-xxhx. Fix status from GitHub. Impact type from CWE-285.
Summary
The opencti-graphql npm package before 7.260604.0 has an improper authorization flaw (CWE-285) in the draftWorkspaceDelete GraphQL mutation. The mutation only requires the basic KNOWLEDGE read capability, and draft workspaces with no restricted members grant admin access to all users. An authenticated user with read access can delete draft workspaces created by other users, along with their draft files and entities.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Summary The GraphQL mutation `draftWorkspaceDelete` is improperly guarded by `@auth(for: [KNOWLEDGE])`, which is the basic read capability granted to the default user role. Combined with the default behavior of `getUserAccessRight` (which grants admin access rights on objects that do not define `restricted_members`), any authenticated low-privilege user can delete draft workspaces created by other users. This allows unauthorized deletion of draft workspaces, including all associated draft files, draft entities, draft relationships, and worker/task draft context, without possessing `KNOWLEDGE_KNUPDATE`, `KNOWLEDGE_KNUPDATE_KNDELETE`, or any administrative capability. ### Details 1. **Weak `@auth` directive**: While other mutations in the draft workspace module require `KNOWLEDGE_KNUPDATE` or stronger, `draftWorkspaceDelete` only checks for `KNOWLEDGE`. 2. **Access Control Check**: During the deletion flow, if `restricted_members` is empty on a draft workspace (the default state when drafts are created), access right resolution defaults to administrative access for all users, enabling the deletion. ### Impact - **Vulnerability Class**: Improper Authorization / Privilege Escalation (CWE-285, CWE-269) - **Attacker Requirements**: An authenticated session with standard read access (`KNOWLEDGE`). - **Consequences**: Irreversible deletion of draft workspaces created by other users, leading to data loss of draft entities, relationships, and attached files, and denial of service for analyst investigations. - **Confidentiality**: No confidentiality impact beyond standard read access to draft metadata. ### Patches The vulnerability is addressed in OpenCTI **7.260604.0** by restricting the mutation to appropriate delete capabilities and ensuring proper default member restrictions.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | opencti-graphql (npm) | <7.260604.0 | >= 7.260604.0 | Patch available | GHSA-j2p5-vc4m-xxhx |
- opencti-graphql (npm) Vendor— Affected <7.260604.0 Fixed in >= 7.260604.0 Patch available GHSA-j2p5-vc4m-xxhx
Remediation
Upgrade opencti-graphql to version 7.260604.0 or later, which restricts the mutation to appropriate delete capabilities and sets proper default member restrictions.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-j2p5-vc4m-xxhx opencti-graphql (npm) Fixed in >= 7.260604.0 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-j2p5-vc4m-xxhx
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences