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

@clerk/express

Latest version: v2.1.104-canary.v20261204204914

Overview

Last scanned
4 Dec 2026
Published
4 Dec 2026
npm package Publisher: bradenclerk, brkalow-clerk, colinclerk, dominic-clerk, jescalan, nikosdouvlis
1,789 Stars
496 Forks
274 Versions
2.5M Downloads
TypeScript Repo language

Scan summary

@clerk/express was last scanned on 4 Dec 2026 at version 2.1.104-canary.v20261204204914. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 274 versions; the latest 5 were published on 4 Dec 2026.
  • Findings: No rules fired in version 2.1.104-canary.v20261204204914.
  • Downloads: 2,505,661 downloads.

Versions

274 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.1.104-canary.v20261204204914 LATEST 4 Dec 2026 No rules fired
2.1.104-canary.v20261204203858 4 Dec 2026 No rules fired
2.1.101-snapshot.v20261204203309 4 Dec 2026 No rules fired
2.1.104-canary.v20261204183449 4 Dec 2026 Not shown
2.1.104-canary.v20261204182110 4 Dec 2026 Not shown

No rules fired in 2.1.104-canary.v20261204204914

Findings

Findings for v2.1.104-canary.v20261204204914. 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 2.1.104-canary.v20261204204914; other versions have their own rules, not their own score.

Known vulnerabilities

3 CVEs · last 11 May 2026

0 CRITICAL 3 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 2.1.6
  • ≥ 2.0.7, < 2.1.6 1 HIGH
  • ≥ 2.0.0, < 2.0.7 2 HIGH
  • ≥ 1.7.79, < 2.0.0
  • ≥ 1.7.4, < 1.7.79 1 HIGH
  • ≥ 1.6.0, < 1.7.4 2 HIGH
  • ≥ 0.1.0, < 1.6.0 1 HIGH
  • < 0.1.0

Vulnerabilities

  • CVE-2026-42349 High 11 May 2026 Clerk has an authorization bypass when combining organization, billing, or reverification checks Fixed in 1.7.79, 2.1.6
  • CVE-2026-34076 High 1 Apr 2026 Clerk: SSRF in the opt-in clerkFrontendApiProxy feature may leak secret keys to unintended host Fixed in 2.0.7
  • CVE-2025-53548 High 9 Jul 2025 @clerk/backend Performs Insufficient Verification of Data Authenticity Fixed in 1.7.4

README

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

Chat on Discord Clerk documentation Follow on X

Changelog · Report a Bug · Request a Feature · Get help

Getting Started

Clerk is the easiest way to add authentication and user management to your Express application. Add sign up, sign in, and profile management to your application in minutes.

Prerequisites
Installation
npm install @clerk/express

Usage

Navigate to the Clerk Dashboard and inside the API Keys section copy the publishable key and secret key.

Paste your keys into an .env file:

CLERK_PUBLISHABLE_KEY=pk_*******
CLERK_SECRET_KEY=sk_******

Ensure that the environment variables are loaded, for example by using dotenv at the top of your Express application:

import 'dotenv/config';

// Rest of application
clerkMiddleware()

The clerkMiddleware() function checks the request's cookies and headers for a session JWT and, if found, attaches the Auth object to the request object under the auth key.

import { clerkMiddleware } from '@clerk/express';
import express from 'express';

const app = express();

// Pass no parameters
app.use(clerkMiddleware());

// Pass options
app.use(clerkMiddleware(options));
requireAuth

The requireAuth() middleware functions similarly to clerkMiddleware(), but also protects your routes by redirecting unauthenticated users to the sign-in page.

The sign-in path will be read from the signInUrl option or the CLERK_SIGN_IN_URL environment variable if available.

import { requireAuth } from '@clerk/express';
import express from 'express';

const app = express();

// Apply centralized middleware
app.use(requireAuth());

// Apply middleware to a specific route
app.get('/protected', requireAuth(), (req, res) => {
  res.send('This is a protected route');
});

// Custom sign-in URL
app.get('/protected', requireAuth({ signInUrl: '/sign-in' }), (req, res) => {
  res.send('This is a protected route');
});
getAuth()

The getAuth() helper retrieves authentication state from the request object. See the Next.js reference documentation for more information on how to use it.

import { clerkMiddleware, getAuth } from '@clerk/express';
import express from 'express';

const app = express();

// Apply centralized middleware
app.use(clerkMiddleware());

// Protect a route based on authorization status
hasPermission = (request, response, next) => {
  const auth = getAuth(request);

  // Handle if the user is not authorized
  if (!auth.has({ permission: 'org:admin:testpermission' })) {
    return response.status(403).send('Unauthorized');
  }

  return next();
};

app.get('/path', requireAuth, hasPermission, (req, res) => res.json(req.auth));
clerkClient

Clerk's JavaScript Backend SDK exposes Clerk's Backend API resources and low-level authentication utilities for JavaScript environments. For example, if you wanted to get a list of all users in your application, instead of creating a fetch to Clerk's https://api.clerk.com/v1/users endpoint, you can use the users.getUserList() method provided by the JavaScript Backend SDK.

All resource operations are mounted as sub-APIs on the clerkClient object. See the reference documentation for more information.

import { clerkClient } from '@clerk/express';
import express from 'express';

const app = express();

app.get('/users', requireAuth, async (req, res) => {
  const users = await clerkClient.users.getUserList();
  return res.json({ users });
});

Support

For help, visit our support page.

Community

Join our Discord community to connect with other developers.

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.

Security

@clerk/express follows good practices of security, but 100% security cannot be assured.

@clerk/express is provided "as is" without any warranty. Use at your own risk.

For more information and to report security issues, please refer to our security documentation.

License

This project is licensed under the MIT license.

See LICENSE for more information.

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 @clerk/express

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

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?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229