Security
Security
Polaris is self-hosted. Users, sessions and credentials live in your database, and the code that handles them is a dependency you can read. This page collects what a review of that code starts from.
Threat model
Every control in Polaris answers a named threat. The threat-to-control matrix from the design documentation:
| Threat | Primary control(s) |
|---|---|
| Credential stuffing / brute force | rate limiting, lockout, breached-password check, MFA |
| Phishing / password reuse | MFA (TOTP/SMS/email), step-up on sensitive ops |
| Token theft (access) | short TTL, audience pinning, optional jti denylist, cookie mode |
| Token theft (refresh) | rotation + reuse detection (revoke family), hashed at rest |
| User enumeration | generic responses, timing equalization |
| OTP brute force | 6-digit + 5 attempts + 5-min expiry + per-account verify limit |
| OTP bombing (cost/abuse) | per-destination send limits + resend cooldown |
| Privilege escalation | can’t grant roles you lack; last-owner & hierarchy policies; org-scope checks |
| Cross-tenant access | path-org vs token-org consistency check; superadmin explicit |
| Account takeover via reset | hashed single-use tokens, 1h expiry, logout-all on reset |
| Session fixation | new tokens minted on every auth; refresh rotates |
| Replay (TOTP within window) | last-accepted step tracking per factor |
| Key compromise | asymmetric signing, key rotation via kid/JWKS, fail-fast on missing keys |
| Insider/abuse | append-only audit log, alertable events |
Read the full threat model: cryptography, key management, token security, rate limiting and the audit log.
Audit history
Two security audit rounds were remediated before the 1.0 release of the module the
polaris/* packages were extracted from. From the changelog:
Two security audits (#44 sign-off and the #97 follow-ups) fully remediated: atomic rotation/OTP/recovery claims, APP_KEY minimum length, full-length key fingerprints, typed challenge purposes, abuse caps.
Supported versions
| Product | Packages | Supported |
|---|---|---|
| Polaris for PHP | polaris/* | 0.12.x |
| Polaris for Go | github.com/univeros/polaris.go | 1.1.x |
| Polaris for Univeros | univeros/polaris | 2.x (1.x keeps working on its own branch) |
Published advisories
Fixed in Polaris for PHP 0.12.1.
- GHSA-vr39-7fjx-jx56 ·
polaris/scim, fixed in 0.12.1: A SCIM connection could change or delete accounts outside its organization. - GHSA-m3cr-x84p-2jq6 ·
polaris/sso, fixed in 0.12.1: An organization's identity provider could sign in an existing account that was not its member. - GHSA-pf6x-vg8c-q5fq ·
polaris/social, fixed in 0.12.1: A sign-in or link flow could be completed in another browser (login and link CSRF).
Review status
External security review: scheduled before 1.0.0. It covers core and the plugins that
handle credentials and delegation, polaris/social,
polaris/passkey,
polaris/oauth-provider,
polaris/mcp and
polaris/agents, with the infrastructure plugins.
Polaris for PHP is 0.12.1; 1.0.0 is tagged after the review (roadmap).
Polaris for Go had internal security reviews of the whole module before 1.0, each fix reviewed again, and every fuzz target ran for 60 minutes on the release candidate. The evidence is in docs/v1.md. It has had no external review.
Advisories
Security advisories are published on GitHub:
univeros/polaris-core
for the polaris/* packages,
univeros/polaris.go for
Polaris for Go from 1.0.0, and
univeros/polaris for the Univeros module.
This site
This site loads Google Analytics (gtag.js), which sets cookies, and Google Fonts. The documentation search runs in the browser without a server.
Rendered from univeros/polaris-core at v0.12.1 · View source