/

CVE-2026-67541

Severity:

HIGH RISK

(8.1)

Missing Authorization (CWE-862) in Heym Team Management

CVE-2026-67541

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-266, CWE-862

Impact:

Unauthorized access to team-shared credentials

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Heym's team-member management checks whether a user belongs to a team but does not require creator or administrator privileges. A non-creator member may add an attacker-controlled account, which can then decrypt credentials shared with the team.

Affected context

The issue affects Heym deployments where team members can manage membership without a creator or administrator role check. Because credential sharing is scoped to team-member user IDs, adding an attacker-controlled account can expose credentials shared with that team, including provider API keys and OAuth tokens.

Exploit preconditions

  • Attack surface: Team-member management operations, including adding, removing, or updating members
  • Required access: Membership in the target team; creator or administrator privileges are not required by the described checks
  • Trigger point: A non-creator member adds an attacker-controlled account to the team
  • Why exploitation is possible: Team membership changes are authorized by membership alone, and credential access is associated with TeamMember.user_id rather than a narrower role or permission.

Why this happens

The access-control logic treats team membership as sufficient authority for sensitive membership-management operations. This is a missing authorization check (CWE-862) and can also result in incorrect privilege assignment (CWE-266): ordinary members receive capabilities intended for a team creator or administrator. Since team-shared credentials are available based on membership, this permission gap can extend access to sensitive secrets.

Potential impact

  • An attacker-controlled account may gain access to credentials shared with the team.
  • Exposed API keys or OAuth tokens could be used to access connected services.
  • Credential misuse may lead to unauthorized actions or data exposure in dependent systems.
  • Team membership and access boundaries may be weakened.

General mitigation guidance

Common defensive patterns include:

  • Enforce explicit role- or permission-based authorization for every membership-management operation.
  • Apply least privilege by limiting add, remove, and update capabilities to designated administrators.
  • Scope credential access to explicit grants rather than automatically granting it to every team member.
  • Review authorization checks at the service or data-access boundary, not only in the user interface.
  • Treat team membership changes and credential access as separate trust decisions, with auditable policy enforcement.

How teams detect issues like this

  • Use static analysis and code review to identify membership checks that guard administrative operations without role or permission checks.
  • Review routes and service methods for consistent authorization across add, remove, and update actions.
  • Audit credential-sharing logic for access decisions based solely on team membership or user identifiers.
  • Monitor membership changes by non-administrators and unusual access to shared credentials.
  • Enforce policy tests that verify ordinary members cannot perform administrative actions or gain unintended secret access.

Sources

SourceLink
github.comgithub.com/heymrun/heym/commit/863e2702fca9a584246da9a51cca6b12828cebcf
github.comgithub.com/heymrun/heym/commit/a9fc3d864e87fa2449b235798189db9cd39367c4
github.comgithub.com/heymrun/heym/commit/def26b5cf77dad4a9c5b5ff11c9863a0bc144ac8
github.comgithub.com/heymrun/heym/releases/tag/0.0.70
github.comgithub.com/heymrun/heym/security/advisories/GHSA-vxpw-x7j7-8723

Frequently asked

questions

It concerns team-member management and access to credentials shared with the affected team.

The described authorization gap allows a team member who is not the creator or administrator to make membership changes. The attacker-controlled account must then be added to the team to gain the associated credential access.

Require explicit administrator or creator permissions for membership changes, and authorize credential access separately using narrowly scoped grants.

Define role-based policies for sensitive operations, test authorization at service boundaries, and audit changes to membership and credential access.

Find out what's already
exploitable in your codebase.