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

@blakearoberts/visage

Latest version: v0.0.7-rc.13

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: blakearoberts
1 Stars
0 Forks
55 Versions
6.2K Downloads
TypeScript Repo language

Scan summary

@blakearoberts/visage was last scanned on 25 Nov 2026 at version 0.0.7-rc.13. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 55 versions; the latest 5 were published within 5 days (21–25 Nov 2026).
  • Findings: No rules fired in version 0.0.7-rc.13.
  • Downloads: 6,228 downloads.

Versions

55 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.7-rc.13 LATEST 25 Nov 2026 No rules fired
0.0.7-rc.12 25 Nov 2026 No rules fired
0.0.7-rc.11 25 Nov 2026 No rules fired
0.0.7-rc.10 23 Nov 2026 Not shown
0.0.7-rc.9 21 Nov 2026 Not shown

No rules fired in 0.0.7-rc.13

Findings

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

README

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

Visage

Visage (/vit·ɛdʒ/) is a Vite plugin for local development with HMR and OIDC session cookie lifecycle semantics.

Getting Started

Install Visage from npm:

npm install @blakearoberts/visage@next

Add the plugin to vite.config.ts:

import { defineConfig } from 'vite';
import visage from '@blakearoberts/visage';

export default defineConfig({
  plugins: [visage()],
});

Start Vite normally:

vite

By default, you can reach the app at https://localhost:9001. You will be redirected to Dex to sign in. The default username and password is user@example.com and pass.

Why Visage

Visage is a local development harness for web apps that run behind an auth-protected edge, where browser sessions are represented by secure cookies backed by OIDC tokens.

Visage narrows the gap between local development, automated tests, and production by bringing production-like session lifecycle semantics to local Vite development without giving up HMR. That makes it practical to iterate on SSR identity injection, session timeout recovery, lock screens, and authenticated API calls.

Visage can also use a hosted IdP, so local frontend code can call hosted backend APIs with real credentials. That avoids frontend-only auth mocks or backend-only local bypasses: code can be written for production and still work locally.

System Block Diagram

flowchart LR
  browser([Browser])
  vite([Vite])
  upstreams([Upstreams])

  subgraph docker[Docker]
    nginx[NGINX]
    services([Services])
    Oauth2-Proxy
    idp(["IdP (Dex)"])

    nginx -.-> idp
    nginx -.-> Oauth2-Proxy -.-> idp
    nginx --> services
  end

  browser --> nginx
  nginx --> vite
  nginx ---> upstreams

Configuration

Visage is configured through visage(options?) in vite.config.ts.

The top-level host and port configure the local Visage origin that the browser visits:

visage({ host: 'localhost', port: 9001 });
Services

Services are Docker Compose services managed by the Vite dev-server lifecycle. Services automatically create upstream locations on the app host at /{name} which Visage removes before proxying the request to the service host.

visage({
  services: { whoami: { image: 'traefik/whoami' } },
});
Service Networks

Each service joins its own private Docker network. NGINX joins the private networks of services with upstreams. To allow direct service-to-service connections, add the same network name to each service's networks list.

visage({
  services: {
    api: { image: 'example/api' },
    res: { image: 'mysql', upstream: false, networks: ['api'] },
  },
});
Remotes

Remotes are upstreams without a Visage managed Docker container process. Remotes automatically create upstream locations on the app host behind at /{name} which Visage removes before proxying the request to the upstream host.

visage({
  remotes: {
    api: { host: 'api.remote.test' },
  },
});

Service and remote locations do not forward bearer tokens by default. Set auth.forward to true to forward the default bearer token for the upstream kind: remotes receive the OAuth access token, while services receive the OIDC ID token.

Hosted backend APIs that validate bearer auth should generally receive the access token, provided the token is issued for that API's issuer, audience, and scopes. Use 'access' or 'id' when you need to force a specific token kind.

visage({
  remotes: {
    api: {
      host: 'api.remote.test',
      auth: { forward: true },
    },
  },
});

OAuth2 Proxy can also return X-Auth-Request-Groups and X-Auth-Request-Preferred-Username, but Visage does not capture or forward them automatically. Capture and forward optional identity values as needed:

visage({
  remotes: {
    api: {
      directives: {
        auth_request_set: [
          '$auth_groups $upstream_http_x_auth_request_groups',
          '$auth_preferred_username $upstream_http_x_auth_request_preferred_username',
        ],
      },
      headers: {
        'X-Auth-Request-Groups': '$auth_groups',
        'X-Auth-Request-Preferred-Username': '$auth_preferred_username',
      },
    },
  },
});

Authenticated locations also get CSRF checks by default. Set csrf: false when the upstream intentionally handles cross-site browser requests itself. See CSRF Policy.

External IdPs

The default IdP, Dex, can be replaced with an external OIDC provider:

visage({
  idp: { issuer: 'https://idp.example.test/oauth2/default' },
});

Configure authorization, token, or jwks only when the provider endpoints must be rendered explicitly instead of discovered from the issuer. Configure end_session_endpoint when the provider supports OIDC end-session redirects.

Visage delegates principal admission to the identity provider and configures OAuth2 Proxy to accept any non-empty email asserted by that issuer. With managed Dex, idp.users is the complete eligible user list. With an external IdP, its client registration and application-assignment policy must ensure every identity that can obtain an OIDC response for the Visage client is intended to access the local application; Visage does not apply an additional email-domain allowlist.

Telemetry

Set telemetry to enable collection, redaction, and export of telemetry signals via OTLP/gRPC.

  • When enabled, Visage configures:

    • NGINX to export access spans to the Collector;
    • OAuth2 Proxy Prometheus metrics listener to be scraped by the Collector;
    • Service containers to send stdout/stderr to the Collector;
    • The Collector to accept authenticated OTLP/HTTP signals at /t/.
  • The Collector exports OTLP to host.docker.internal:4317 by default; the telemetry example demonstrates how to configure Grafana as a Visage managed service to receive and view the telemetry.

See VisageOptions for the full option surface.

Required Tools

  • Docker with Compose v2 support through docker compose.
  • mkcert installed on PATH, or configured with VISAGE_MKCERT=/path/to/mkcert.

Managed Docker Images

Visage pulls these as needed based on configuration:

Service Image
NGINX visage-nginx
OAuth2 Proxy quay.io/oauth2-proxy/oauth2-proxy
Dex ghcr.io/dexidp/dex
OpenTelemetry Collector otel/opentelemetry-collector-contrib
Socat alpine/socat

The image tags Visage uses by default are defined by the manifest file, docker-compose.images.yml.

Security Notes

Visage is local-development tooling. It starts local auth infrastructure, terminates local HTTPS, and forwards authenticated identity or token material to configured upstreams.

Please report suspected vulnerabilities through GitHub private vulnerability reporting as described in Security Policy.

Do not treat the managed Dex and OAuth2 Proxy defaults as production auth infrastructure.

Visage's CSRF policy is the edge CSRF control for cookie-backed locations. Application CSRF tokens are not required for ordinary same-origin SPA mutations under this policy. App-level tokens may still be useful when a location disables the edge policy, intentionally accepts cross-site browser requests, or needs a token that encodes additional authorization semantics. CSP, frame-ancestors, and other click-jacking controls remain application policy.

Troubleshooting

  • If startup fails immediately, confirm Docker is running and docker compose works.
  • If NGINX cannot start, check whether the configured port is already in use.
  • If the hostname cannot be resolved, Visage may need permission to update /etc/hosts.

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 @blakearoberts/visage

References

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

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?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229