/

CVE-2026-129545

Severity:

HIGH RISK

(8.8)

Improper Privilege Management (CWE-269) in Kalmia

CVE-2026-129545

Received

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269

Impact:

Unauthorized privilege escalation and account takeover

Severity:

HIGH RISK

(8.8)

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

Kalmia has a privilege escalation vulnerability in its user-edit endpoint that may let an authenticated, low-privileged user change accounts they should not be able to manage. A user with only read permission could potentially grant themselves administrative permissions or reset an administrator's password, leading to account or instance takeover.

Affected context

The issue affects Kalmia through version 0.2.0 and is associated with the /kal-api/auth/user/edit endpoint. It becomes risky when the endpoint allows a low-privileged authenticated user to change sensitive account attributes or modify another user's account without adequate authorization checks.

Exploit preconditions

  • Attack surface: The /kal-api/auth/user/edit API endpoint
  • Required access: An authenticated account with low-level access, including read permission
  • Trigger point: A request that edits account details or permissions
  • Why exploitation is possible: The endpoint may not sufficiently restrict which accounts or sensitive fields the caller is authorized to modify

Why this happens

This is an improper privilege management issue mapped to CWE-269. The underlying pattern is allowing an authenticated user to perform account or permission changes beyond their intended authority, such as changing administrative flags, broad permissions, or another user's credentials. Authorization should be enforced for each operation and protected field, not inferred from authentication or general endpoint access.

Potential impact

  • A low-privileged user could grant themselves administrative access
  • An attacker could reset an administrator's password and take over that account
  • Unauthorized changes could compromise the Kalmia instance and its data
  • A compromised account could be used for further actions within the application

General mitigation guidance

Common defensive patterns include:

  • Enforcing server-side authorization for every account edit and target account
  • Allowing only explicitly permitted fields to be updated by each role
  • Keeping administrative flags, broad permissions, and credential changes out of general-purpose profile updates
  • Applying least-privilege defaults and separating read access from account-management capabilities
  • Requiring appropriate authorization checks for sensitive actions, regardless of the user interface

How teams detect issues like this

Review account-edit handlers for missing object-level authorization and for user-controlled updates to role, permission, or credential fields. Static analysis and code review can look for mass-assignment patterns, broad update operations, and authorization checks that occur only at the route or authentication layer. Policies and tests can verify that read-only users cannot edit accounts or sensitive fields, including those belonging to administrators.

Sources

SourceLink
github.comgithub.com/DifuseHQ/Kalmia
github.comgithub.com/DifuseHQ/Kalmia/blob/1bc059450c3901b17e1be99209965b12f6d163e4/services/auth.go#L183-L232
github.comgithub.com/DifuseHQ/Kalmia/issues/35
vulncheck.comvulncheck.com/advisories/kalmia-through-0.2.0-privilege-escalation-via-kal-api-auth-user-edit

Frequently asked

questions

The described issue requires an authenticated account with low-level access, including read permission.

Potentially. The description says an attacker may reset an administrator's password, or grant themselves administrative permissions, enabling account or instance takeover.

Enforce server-side authorization for each target account and each sensitive field, and separate privileged account-management actions from ordinary profile updates.

Use least-privilege roles, explicit field allowlists, and tests that verify users cannot perform account or permission changes beyond their authority.

Find out what's already
exploitable in your codebase.