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

@masks/server

Latest version: v0.5.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: geiger-to
0 Stars
0 Forks
8 Versions
356 Downloads
Ruby Repo language

Scan summary

@masks/server was last scanned on 29 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.5.0.
  • Downloads: 356 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.0 LATEST 29 Nov 2026 No rules fired
0.4.0 7 Nov 2026 No rules fired
0.3.3 22 Oct 2026 No rules fired
0.3.2 20 Oct 2026 Not shown
0.3.1 19 Oct 2026 Not shown

No rules fired in 0.5.0

Findings

Findings for v0.5.0. 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 0.5.0; other versions have their own rules, not their own score.

README

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

@masks/server

@masks/server connects a JavaScript server to masks, a self-hosted OpenID Connect provider.

  • It signs people in to a Next.js, Auth.js, Express, or Hono app.
  • It gets tokens as a client, for a server or a machine.
  • It checks access tokens in an API.

It uses only fetch, Request, Response, and Web Crypto, so it runs on Node 20 and later, Bun, and Deno.

npm install @masks/server

Signing people in to Express

import express from "express";
import { masksExpress, requireAuth } from "@masks/server/express";

const app = express();

app.use(masksExpress({ privileges: { admin: ["catalog:admin"] } }));
app.get("/settings", requireAuth("admin"), (req, res) => res.json(req.masked));
  1. Set MASKS_ISSUER to the tenant's address.
  2. Set MASKS_RESOURCE to the app's own address.
  3. Set MASKS_SECRET to at least 32 random characters.
  4. Start the app and open /auth.

The first visit runs the handshake, which registers the app with masks and writes its credentials to masks.json. Keep that file out of version control.

Testing your app

@masks/server/testing is a fake masks that runs on a local port. It signs people in, refreshes tokens, and mints logout tokens with its own signing key, so a test suite never reaches a real server.

import { Client, Issuer } from "@masks/server";
import { Fake } from "@masks/server/testing";

const fake = await Fake.start();
fake.add("app", { method: "client_secret_basic", secret: "s3cret" });

const issuer = await Issuer.discover(fake.url);
const client = new Client({ issuer, id: "app", secret: "s3cret" });

const started = await client.start({ redirectURI: "http://localhost:3000/auth/callback" });
const signedIn = await client.complete(fake.authorize(started.url), started);

await fake.close();

fake.authorize signs in as ada and returns the URL masks would send the browser back to. Pass { sub: "bob" } to sign in as somebody else, or { error: "access_denied" } to decline. fake.logoutToken({ aud: "app", sub: "ada" }) mints a back-channel logout token.

Documentation

MIT.

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 @masks/server

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

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?

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