Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@frontmcp/auth

Latest version: v1.13.0-rc.2

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: davidfrontegg, davidmantoon
154 Stars
8 Forks
56 Versions
11.4K Downloads
TypeScript Repo language

Scan summary

@frontmcp/auth was last scanned on 26 Nov 2026 at version 1.13.0-rc.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 56 versions; the latest 3 were published within 3 days (24–26 Nov 2026).
  • Findings: No rules fired in version 1.13.0-rc.2.
  • Downloads: 11,441 downloads.

Versions

56 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.13.0-rc.2 LATEST 26 Nov 2026 No rules fired
1.13.0-rc.1 26 Nov 2026 No rules fired
1.12.3 24 Nov 2026 No rules fired
1.12.2 14 Nov 2026 Not shown
1.12.1 13 Nov 2026 Not shown

No rules fired in 1.13.0-rc.2

Findings

Findings for v1.13.0-rc.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.13.0-rc.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@frontmcp/auth

Authentication and authorization for FrontMCP servers: the five auth modes, OAuth 2.1 sign-in with FrontMCP as its own authorization server or in front of your identity provider, JSON Web Token (JWT) and session checks, access rules on tools, and the built-in sign-in pages. @frontmcp/sdk depends on this package, so a FrontMCP server already has it, and you configure it through @FrontMcp({ auth }). Install it yourself only to import something the SDK doesn't re-export, like escapeHtml for a custom sign-in page or AuthorityDeniedError.

npm License

Install

A FrontMCP server doesn't need this step: @frontmcp/sdk installs @frontmcp/auth. To import from it directly:

npm install @frontmcp/auth

Use the same version as @frontmcp/sdk. It needs Node.js 24 or later.

Peer dependency Required What it's for
@frontmcp/lazy-zod Yes The option schemas. @frontmcp/sdk already brings it; it needs zod 4.
ioredis No Redis-backed stores: tokenStorage: { redis } in local and remote modes, RedisSessionStore, and others.
@vercel/kv No VercelKvSessionStore.
@frontmcp/storage-sqlite No tokenStorage: { sqlite }.

Usage

Set auth on @FrontMcp; its schema comes from this package. Here users sign in at your identity provider, and FrontMCP issues the tokens MCP clients send:

import { FrontMcp } from '@frontmcp/sdk';

import { DeskApp } from './desk.app';

@FrontMcp({
  info: { name: 'desk', version: '1.0.0' },
  apps: [DeskApp],
  auth: {
    mode: 'remote',
    provider: 'https://idp.example.com',
    clientId: 'desk-mcp',
    clientSecret: process.env.IDP_CLIENT_SECRET,
    scopes: ['openid', 'profile', 'email'],
  },
})
export default class Server {}

In production, set JWT_SECRET: FrontMCP signs its tokens with it. Remote and proxied auth lists every option, and the callback URL to register at your provider. mode is one of:

mode Who gets in
'public' Everyone. The default.
'static' Requests that send one of your keys.
'transparent' Requests with a valid JWT signed by your identity provider.
'local' Users who sign in on FrontMCP's own page.
'remote' Users who sign in at your identity provider, through FrontMCP.
Importing from the package directly

In local mode, login.render replaces the sign-in page. FrontMCP doesn't escape what you print, so pass every value through escapeHtml:

import { escapeHtml } from '@frontmcp/auth';
import { FrontMcp } from '@frontmcp/sdk';

import { DeskApp } from './desk.app';

@FrontMcp({
  info: { name: 'desk', version: '1.0.0' },
  apps: [DeskApp],
  auth: {
    mode: 'local',
    login: {
      fields: { deskKey: { type: 'password', label: 'Desk key', required: true } },
      render: (ctx) => `<!doctype html>
<html lang="en">
  <body>
    <p>${escapeHtml(ctx.clientName)} wants to connect to your desk.</p>
    ${ctx.error ? `<p role="alert">${escapeHtml(ctx.error)}</p>` : ''}
    <form method="POST" action="${escapeHtml(ctx.callbackPath)}">
      <input type="hidden" name="pending_auth_id" value="${escapeHtml(ctx.pendingAuthId)}">
      <label>Desk key <input type="password" name="deskKey" required></label>
      <button>Sign in</button>
    </form>
  </body>
</html>`,
    },
    authenticate: async ({ fields }) =>
      fields.deskKey === process.env.DESK_KEY
        ? { ok: true, sub: 'operator' }
        : { ok: false, message: 'Unknown desk key' },
  },
})
export default class Server {}

What's in it

  • Auth modes: authOptionsSchema and the option types of each mode. See Auth modes.
  • Local mode: FrontMCP as an OAuth 2.1 authorization server, with PKCE (Proof Key for Code Exchange), dynamic client registration and refresh tokens. See Local auth.
  • Remote mode: users sign in at your identity provider, and FrontMCP issues the tokens. See Remote and proxied auth.
  • Upstream providers: several OAuth providers linked in one sign-in, on one picker page or one provider per page (incrementalAuth.showAllAppsAtOnce: false, buildFederatedStepPage). See Upstream providers.
  • Token checks: JWT verification against a JSON Web Key Set (JWKS), and audience and scope checks (JwksService, validateAudience). See Tokens and sessions.
  • CIMD (Client ID Metadata Documents): clients whose client_id is the URL of a metadata document (CimdService). A public client declares token_endpoint_auth_method: 'none'; a confidential one declares private_key_jwt and authenticates at the token endpoint with a client assertion signed by a key from its jwks / jwks_uri (RFC 7523, CimdService.verifyClientAssertion). See Client ID metadata.
  • Authorities: rules on tools, resources, prompts, skills and agents, from roles, permissions, token claims, the call's arguments or your own code (AuthorityDeniedError). See Authorities.
  • Credential vault: per-user credentials that tools read with this.credentials, and that users can add to mid-session. See Progressive auth.
  • Sign-in pages: the built-in sign-in, consent and error pages, and escapeHtml, buildLoginPage and baseLayout for your own. See Custom login UI.
  • Storage: memory, Redis, Vercel KV and SQLite stores for sessions, authorization codes and tokens, and encrypted storage for secrets (EncryptedTypedStorage, TokenVault). See Local auth storage.

Docs

Related packages

  • @frontmcp/sdk: the framework. It runs this package and re-exports its option types.
  • @frontmcp/utils: the crypto (PKCE, encryption, key derivation) and storage adapters this package builds on.
  • @frontmcp/ui: @frontmcp/ui/auth, for React sign-in pages set with auth.ui.
  • @frontmcp/testing: token factories and mock OAuth servers for tests.

Contributing

Source: libs/auth. Issues and pull requests are welcome; see CONTRIBUTING.md.

License

Apache-2.0. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @frontmcp/auth

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229