- Security Policy
- Reporting a Vulnerability
- Severity Rating
- Known Vulnerabilities
- 2026
- COSMIAN-AUTH-2026-001 — Plaintext password storage via create_userpass endpoint
- COSMIAN-AUTH-2026-002 — Plaintext password storage via update_userpass endpoint
- COSMIAN-AUTH-2026-003 — TLS private key baked into the Docker image
- COSMIAN-AUTH-2026-004 — Vulnerable admin UI transitive dependencies
- COSMIAN-AUTH-2026-005 — Cross-realm admin impersonation via AdminAuth
- COSMIAN-AUTH-2026-006 — Missing authorization and session-credential exposure on /sessions endpoints
- COSMIAN-AUTH-2026-007 — Realm admins could manage global AppRole and Kubernetes machine roles
- COSMIAN-AUTH-2026-008 — Admin login, 2FA, and credential authorization bypasses and secret leakage
- COSMIAN-AUTH-2026-009 — Default admin/change_me super-admin credential stayed usable indefinitely
- COSMIAN-AUTH-2026-010 — IP-only login rate limiting without per-account backoff or trusted-proxy support
- COSMIAN-AUTH-2026-011 — Non-atomic admin realm membership updates could unclaim realms or drop memberships
- 2026
- Summary Table
- Security Best Practices
- Cryptography
- Security Audits
- Contact
We take the security of the Cosmian Authentication Server seriously. If you discover a security vulnerability, please report it responsibly:
- Do not report security vulnerabilities through public GitHub issues.
- GitHub Security Advisories (preferred): Use the private vulnerability reporting feature.
- Email: Send details to tech@cosmian.com.
What to include: A clear description, steps to reproduce, potential impact, and suggested fix if available.
Response timeline:
- Acknowledgement: within 48 hours
- Investigation: within 5 business days
- Fix: as quickly as possible, coordinated disclosure with the reporter
| Rating | Description |
|---|---|
| Critical | Full authentication bypass, session forgery, or unauthenticated privilege escalation affecting any deployment |
| High | Credential or key exposure, super-admin/realm-admin privilege escalation, or 2FA bypass under realistic attack |
| Moderate | Requires specific conditions or limited scope; no direct credential compromise |
| Low | Minimal practical impact, build-time only, or very difficult to exploit |
The auth-server threat model prioritises: authentication bypass, session cookie forgery or hijacking, escalation between realm admins and super admins, TOTP/2FA bypass, password or credential exposure at rest, machine-authentication token leakage, and violations of the exclusive-ownership rule between admins.
| Field | Value |
|---|---|
| Severity | High |
| Published | 16 July 2026 |
| Affected | from 0.1.0 before 0.2.1 |
| Fixed in | 0.2.1 |
| Found by | Cosmian engineering |
| References | CHANGELOG, CWE-256, CWE-312 |
Summary: The create_userpass endpoint stored the password bytes supplied
by the client verbatim, without hashing. Because validate_userpass compares
the stored value against an Argon2id hash of the incoming password, every
username/password login for API-created credentials failed, while the plaintext
password remained persisted in the database.
Impact: Password confidentiality at rest was lost for credentials created through the API: an attacker with read access to the database could recover the users' cleartext passwords. Logins for those credentials were also broken until the credential was recreated.
Mitigation: Upgrade to 0.2.1. The endpoint now calls
hash_password_with_argon2 before persisting the record, so only the Argon2id
hash is stored.
| Field | Value |
|---|---|
| Severity | Moderate |
| Published | 6 August 2026 |
| Affected | from 0.1.0 before 0.3.0 |
| Fixed in | 0.3.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, CWE-256, CWE-312 |
Summary: The update_userpass endpoint shared the root cause of
COSMIAN-AUTH-2026-001: on a password reset (non-empty password bytes), the new
password was stored verbatim instead of being hashed.
Impact: Password confidentiality at rest was lost whenever a credential's password was reset through the API. The exposure window was narrower than COSMIAN-AUTH-2026-001 because it required an explicit password-reset call.
Mitigation: Upgrade to 0.3.0. Non-empty password bytes are now hashed with
Argon2id before storage; an empty password: [] (roles/flags-only update)
preserves the existing hash.
| Field | Value |
|---|---|
| Severity | High |
| Published | 6 August 2026 |
| Affected | from 0.1.0 before 0.3.0 |
| Fixed in | 0.3.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, CWE-321 |
Summary: The published Docker image bundled a TLS server certificate and its private key at build time. Every deployment based on the image therefore shared the same, publicly retrievable private key.
Impact: Anyone with access to the image could extract the TLS private key and impersonate the server or mount a man-in-the-middle attack against clients that trusted the baked-in certificate.
Mitigation: Upgrade to 0.3.0. The container entrypoint now generates a self-signed TLS certificate at runtime; no private key is stored in the image.
| Field | Value |
|---|---|
| Severity | Low |
| Published | 6 August 2026 |
| Affected | from 0.1.0 before 0.3.0 |
| Fixed in | 0.3.0 |
| Found by | Dependabot advisory scanner |
| References | GHSA-qwww-vcr4-c8h2, CHANGELOG |
Summary: The bundled admin UI shipped with transitive dependencies carrying
published advisories: react-router (GHSA-qwww-vcr4-c8h2) plus js-yaml,
postcss, and brace-expansion.
Impact: Build-time and client-side dependency advisories affecting the admin UI bundle. Practical impact on the server binary is minimal; severity is Low.
Mitigation: Upgrade to 0.3.0. react-router was migrated to v8.3.0 and the
remaining advisories were resolved via pnpm overrides (js-yaml@5.2.2,
postcss@8.5.25, brace-expansion@5.0.9).
| Field | Value |
|---|---|
| Severity | Critical |
| Published | 3 December 2026 |
| Affected | from 0.1.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, #130, #132, CWE-287, CWE-863 |
Summary: AdminAuth matched a session's username and authentication scheme
against admin records without verifying that the session was opened in the
admin realm _.
Impact: Any ordinary user in a non-admin realm whose username matched an
administrator's login (for example, admin) could authenticate to admin
endpoints (/admins/*, /realms/*, /auth/approle/*, /auth/kubernetes/*)
with that administrator's full privileges, including super-admin privileges.
Mitigation: Upgrade to 0.6.0. AdminAuth now maps only sessions opened in
realm _ and rejects sessions from all other realms with 401 Unauthorized.
COSMIAN-AUTH-2026-006 — Missing authorization and session-credential exposure on /sessions endpoints
| Field | Value |
|---|---|
| Severity | Critical |
| Published | 3 December 2026 |
| Affected | from 0.1.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering / threat model (F-001) |
| References | CHANGELOG, #132, CWE-862, CWE-200 |
Summary: The /sessions/* endpoints enforced no per-caller authorization,
exposed the raw cookie_string session credential in responses, and exposed
POST /sessions allowing any authenticated caller to create or overwrite
arbitrary session records.
Impact: Any user holding a valid session cookie in any realm could read,
hijack (via cookie_string), forge, or revoke sessions belonging to other users
and administrators, including super admins.
Mitigation: Upgrade to 0.6.0. POST /sessions is removed, responses now
return SessionInfo without cookie_string, and every /sessions/* handler
enforces per-caller authorization (own sessions only, or managed realms for
admins; DELETE /sessions/expired is super-admin-only).
| Field | Value |
|---|---|
| Severity | High |
| Published | 3 December 2026 |
| Affected | from 0.3.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, #132, CWE-863 |
Summary: The /auth/approle/* and /auth/kubernetes/* management scopes
used AdminAuth without checking is_super_admin().
Impact: Any realm-scoped administrator could create, modify, delete, or mint secret IDs for global AppRole and Kubernetes machine-authentication roles, escalating beyond their assigned realms.
Mitigation: Upgrade to 0.6.0. Both management scopes are now gated by the
require_super_admin guard while the unauthenticated login routes remain
unaffected.
| Field | Value |
|---|---|
| Severity | High |
| Published | 3 December 2026 |
| Affected | from 0.1.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, #130, #132, CWE-863, CWE-287, CWE-200 |
Summary: Multiple authorization and secret-handling flaws affected admin logins and 2FA:
- TOTP endpoints wrote to the admin record named by
usernameregardless of realm, letting a realm admin alter any other admin's 2FA; enrolling 2FA on ordinary realm users returned success while storing nothing. - Login looked up 2FA by admin ID rather than login name, silently bypassing 2FA when an admin's ID differed from its login or when logging in via JWT.
- Deleting an admin deleted credentials of the same username in every realm,
userpass/jwtlinks were unvalidated, and super admins could take over claimed realms by modifying or re-pointing_logins. - Credential list endpoints returned stored Argon2 password hashes, and
GET /admins/GET /admins/{id}returnedtotp_secretandtotp_auth_urlwhilePOST/PUT /adminsaccepted unverifiedtotp_*fields.
Impact: Realm admins could disable other admins' 2FA or delete users across foreign realms, super admins could bypass realm-claim isolation, 2FA could be silently bypassed, and password hashes and TOTP shared secrets were exposed via API responses.
Mitigation: Upgrade to 0.6.0. Admin _ logins and 2FA now enforce the _
login ownership rule, 2FA is looked up via the authenticated admin login and
refused (400) outside realm _, admin logins are unique in the database,
deleting an admin cascades only its own unshared _ login, and password hashes
and TOTP secrets are never serialized in responses.
| Field | Value |
|---|---|
| Severity | High |
| Published | 3 December 2026 |
| Affected | from 0.1.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering / threat model (F-004) |
| References | CHANGELOG, #137, #144, CWE-1392 |
Summary: On first startup the server seeded a hardcoded super-admin account
admin / change_me in realm _ with allow_expired_passwords: true. Because
that realm setting bypassed the change_password flag, the well-known default
credential remained usable indefinitely without forcing a password change.
Impact: Any deployment left with the default bootstrap credential could be compromised with super-admin privileges (and KMS administrator impersonation when integrated with Cosmian KMS).
Mitigation: Upgrade to 0.6.0. There is no default password: operators
supply one via [bootstrap_admin] (password or password_env, at least 12
characters, change_me refused), or omit it so the server generates a random
24-character password logged once and flagged change_password: true. Realm _
is migrated to allow_expired_passwords: false at startup, PUT /admins/realms/_
with true returns 400, and /login now enforces change_password by
issuing no session until the password is replaced via new_password. Existing
deployments that still use change_me must rotate their admin password
immediately.
COSMIAN-AUTH-2026-010 — IP-only login rate limiting without per-account backoff or trusted-proxy support
| Field | Value |
|---|---|
| Severity | Moderate |
| Published | 3 December 2026 |
| Affected | from 0.3.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering / threat model (F-020) |
| References | CHANGELOG, #137, #144, CWE-307 |
Summary: The login rate limiter keyed exclusively on req.peer_addr() (and
was instantiated separately per Actix worker, multiplying the configured limit),
with no per-account throttling and no trusted-proxy X-Forwarded-For support.
Impact: Behind a reverse proxy or BFF (such as Cosmian KMS), all end users shared one rate-limit bucket, allowing a single client to lock out every user. Conversely, password or TOTP guessing spread across multiple source IPs faced no per-account throttling.
Mitigation: Upgrade to 0.6.0. The rate limiter is shared across workers,
honours X-Forwarded-For strictly from configured trusted_proxies, and a new
per-account exponential backoff throttles repeated failed password, TOTP, and
Vault userpass attempts across all source IPs.
COSMIAN-AUTH-2026-011 — Non-atomic admin realm membership updates could unclaim realms or drop memberships
| Field | Value |
|---|---|
| Severity | Moderate |
| Published | 3 December 2026 |
| Affected | from 0.1.0 before 0.6.0 |
| Fixed in | 0.6.0 |
| Found by | Cosmian engineering |
| References | CHANGELOG, #144, CWE-362 |
Summary: PUT/DELETE /admins/{id}/realms/{realm_id} read the admin,
mutated its realms list in memory, and called update_admin, which deleted
every row in admin_realms for that admin and re-inserted them without a
transaction or row lock.
Impact: Concurrent membership changes for the same admin could silently
overwrite one another (under 0.5.0's realm-claim model, dropping a realm's sole
admin left it unclaimed so a super admin could manage it again), a concurrently
deleted realm truncated remaining memberships on foreign-key failure, and
concurrent requests during the delete/re-insert window saw an admin with zero
realms and failed with 403.
Mitigation: Upgrade to 0.6.0. Membership endpoints now perform atomic
single-row INSERT/DELETE operations (add_admin_realm /
remove_admin_realm), login auto-link uses set_admin_userpass, and
update_admin runs in a single transaction with row locking (SELECT ... FOR UPDATE on PostgreSQL).
| ID | Severity | Affected | Fixed in | Title |
|---|---|---|---|---|
| COSMIAN-AUTH-2026-001 | High | 0.1.0 – 0.2.0 | 0.2.1 | Plaintext password storage via create_userpass |
| COSMIAN-AUTH-2026-002 | Moderate | 0.1.0 – 0.2.1 | 0.3.0 | Plaintext password storage via update_userpass |
| COSMIAN-AUTH-2026-003 | High | 0.1.0 – 0.2.1 | 0.3.0 | TLS private key baked into the Docker image |
| COSMIAN-AUTH-2026-004 | Low | 0.1.0 – 0.2.1 | 0.3.0 | Vulnerable admin UI transitive dependencies |
| COSMIAN-AUTH-2026-005 | Critical | 0.1.0 – 0.5.0 | 0.6.0 | Cross-realm admin impersonation via AdminAuth |
| COSMIAN-AUTH-2026-006 | Critical | 0.1.0 – 0.5.0 | 0.6.0 | Missing authorization and session-credential exposure on /sessions endpoints |
| COSMIAN-AUTH-2026-007 | High | 0.3.0 – 0.5.0 | 0.6.0 | Realm admins could manage global AppRole and Kubernetes machine roles |
| COSMIAN-AUTH-2026-008 | High | 0.1.0 – 0.5.0 | 0.6.0 | Admin login, 2FA, and credential authorization bypasses and secret leakage |
| COSMIAN-AUTH-2026-009 | High | 0.1.0 – 0.5.0 | 0.6.0 | Default admin/change_me super-admin credential stayed usable indefinitely |
| COSMIAN-AUTH-2026-010 | Moderate | 0.3.0 – 0.5.0 | 0.6.0 | IP-only login rate limiting without per-account backoff or trusted proxies |
| COSMIAN-AUTH-2026-011 | Moderate | 0.1.0 – 0.5.0 | 0.6.0 | Non-atomic admin realm membership updates could unclaim realms |
When deploying the Cosmian Authentication Server, we recommend:
- Keep updated: always run the latest supported release.
- TLS everywhere: terminate TLS at the server and prefer mTLS for service-to-service authentication.
- Protect the database at rest: it holds Argon2id password hashes, session state, and machine-authentication token hashes.
- Least-privilege administration: prefer realm admins scoped to their realms over super admins that can administer everything.
- Realm isolation: keep each authentication domain in its own realm.
- Session hygiene: configure conservative session lifetimes and secure the
session store; the
_ea_cookie is an opaque lookup key, so all state lives server-side. - Monitoring: enable logging and monitor authentication events.
The Cosmian Authentication Server relies on the following primitives:
- Password hashing: Argon2id (
m=65536/ 64 MiB,t=3,p=4) with a random per-passwordOsRngsalt. - mTLS: EC P-256 client certificates verified during the TLS handshake.
- Transport: TLS via vendored OpenSSL (default) or rustls (feature
rustls). - Machine tokens: stored as
SHA-256(hvs.<random>), never persisted raw.
There is no FIPS build variant — the server ships a single build variant.
Dependency and advisory hygiene is tracked through:
- cargo-deny — advisory and license scanning, configured in
deny.toml. - cargo-audit — RustSec advisory scanning, configured in
.cargo/audit.toml. - Dependabot — automated dependency updates, configured in
.github/dependabot.yml. - pre-commit — includes
detect-private-keyand related hooks; see.pre-commit-config.yaml.
For general security questions or concerns, contact tech@cosmian.com.
For vulnerability reports, use the private reporting methods described in Reporting a Vulnerability.