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

hazo_admin

Latest version: v0.20.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: pubs12
9 Versions
803 Downloads

Scan summary

hazo_admin was last scanned on 29 Nov 2026 at version 0.20.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 5 were published within 7 days (23–29 Nov 2026).
  • Findings: No rules fired in version 0.20.1.
  • Downloads: 803 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.20.1 LATEST 29 Nov 2026 No rules fired
0.20.0 29 Nov 2026 No rules fired
0.19.0 29 Nov 2026 No rules fired
0.18.1 28 Nov 2026 Not shown
0.18.0 23 Nov 2026 Not shown

No rules fired in 0.20.1

Findings

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

README

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

hazo_admin

Standard site-admin package for hazo apps — auth-gated admin shell + panel kit + drop-in /admin preset.

Install

npm install hazo_admin

Peer deps (required): hazo_core, hazo_ui, react, react-dom, next, lucide-react Peer deps (optional, each feature-gated): hazo_auth, hazo_connect, hazo_logs, and other hazo_* packages

Setup

See SETUP_CHECKLIST.md for step-by-step setup.

Tailwind v4 Setup (Required for consuming apps using Tailwind v4)

If your consuming app uses Tailwind CSS v4, you must configure @source to scan this package's Tailwind classes. Add the following to your app's globals.css (or main CSS file) AFTER the tailwindcss import:

@import "tailwindcss";

/* Required: Enable Tailwind to scan hazo_admin's Tailwind classes */
@source "../node_modules/hazo_admin/dist";

Without this directive, Tailwind v4's JIT compiler will not generate CSS for utility classes used in hazo_admin (colors, spacing, hover states, etc.), resulting in unstyled or broken layouts.

Note: If you are using Tailwind v3, you do not need to add @source.

AdminGate

The AdminGate is the auth/permission/scope gate that protects all admin routes.

adminGate(request, opts)

Non-throwing decision function. Returns an AdminGateResult:

  • { allowed: true, user, permissions, scope_ok? } — access granted
  • { allowed: false, status: 403, reason: 'unauthenticated' | 'forbidden' | 'scope_denied', missing_permissions? } — access denied
import { adminGate } from 'hazo_admin';

const result = await adminGate(request, {
  required_permissions: ['admin_system'],
  scope_id: params.orgId,  // optional — for HRBAC scope isolation
});
withAdminGate(handler, opts)

Route HOF. On denial returns a 403 JSON response; on allow calls the handler.

import { withAdminGate } from 'hazo_admin';

export const GET = withAdminGate(
  async (request, gate) => {
    // gate.user and gate.permissions are available here
    return Response.json({ ok: true });
  },
  { required_permissions: ['admin_system'] }
);

Permission Constants

import { HAZO_ADMIN_PERMISSIONS } from 'hazo_admin/client';

// Core
// HAZO_ADMIN_PERMISSIONS.ADMIN_SYSTEM    = 'admin_system'      — full admin access (default gate)
// HAZO_ADMIN_PERMISSIONS.ENV_MIGRATE     = 'env.migrate'       — view the env health/diagnostics panel
//   (name retained for back-compat with seeded permission tables; the env-migration
//   feature that originally justified it was removed in v0.13.0 — see CHANGE_LOG.md)

// Extended (v0.2.0)
// HAZO_ADMIN_PERMISSIONS.AUDIT_READ      = 'audit.read'                 — view audit trail
// HAZO_ADMIN_PERMISSIONS.SETTINGS_MANAGE = 'admin.settings.manage'      — edit app config settings
// HAZO_ADMIN_PERMISSIONS.APIKEYS_MANAGE  = 'admin.apikeys.manage'       — manage API keys
// HAZO_ADMIN_PERMISSIONS.BLOG_MANAGE     = 'admin.blog.manage'          — manage blog posts
// HAZO_ADMIN_PERMISSIONS.FILES_MANAGE    = 'admin.files.manage'         — browse / manage data files
// HAZO_ADMIN_PERMISSIONS.FEEDBACK_REVIEW = 'admin.feedback.review'      — review user feedback
// HAZO_ADMIN_PERMISSIONS.METRICS_VIEW    = 'metrics.view'               — view metrics / analytics panel

// Issues (v0.5.0)
// HAZO_ADMIN_PERMISSIONS.ADMIN_ISSUE_TRIAGE         = 'admin_issue_triage'          — triage / resolve issues queue
// HAZO_ADMIN_PERMISSIONS.ADMIN_USER_SCOPE_ASSIGNMENT = 'admin_user_scope_assignment' — grant scope role assignments

// Arcade (consumer-component kind, like 'metrics')
// HAZO_ADMIN_PERMISSIONS.ARCADE_MANAGE = 'admin.arcade.manage' — manage game config / leaderboards / achievements

// SEO redirects (consumer-component kind, like 'metrics')
// HAZO_ADMIN_PERMISSIONS.SEO_REDIRECTS_MANAGE = 'admin.seo_redirects.manage' — manage hazo_seo_redirects

These must exist as rows in the consuming app's hazo_permissions table. The consuming app is responsible for seeding them.

AdminLayout — header/footer slots + exit link (v0.16.0)

AdminLayout (and AdminApp, which wraps it) accept two optional render-prop slots and a manifest-level "back to the main app" link, all backward compatible — omit them and the sidebar renders exactly as before.

  • headerSlot — rendered above the nav, under the sidebar title/collapse button.
  • footerSlot — rendered below the nav, above the user info footer.
  • manifest.exitLink — a link rendered at the very top of the sidebar, above everything else, with an arrow icon. Useful when the consuming app's own generic site nav doesn't appear on admin pages (e.g. a distinct admin layout), so mobile admin users still have a way back to the rest of the app.
<AdminLayout
  manifest={{ sections: [...], exitLink: { label: 'Back to MyApp', href: '/app/home' } }}
  user={user}
  permissions={permissions}
  headerSlot={<MyOrgSwitcher />}
  footerSlot={<MyHelpLink />}
>
  {children}
</AdminLayout>

When the sidebar is collapsed, exitLink renders as just the icon with a tooltip showing label (same pattern as collapsed nav items). headerSlot/ footerSlot content is left to the consumer to make collapse-friendly if it needs to look good in the collapsed w-14 rail.

Nav sections / manifest kinds

All nav kind metadata is centralized in src/lib/admin_kinds.ts. Each kind maps to a panel, a composed package, and a default permission. Contributors adding a new kind should add it to the registry there first.

Kind Default permission Composed package Status
users admin_system hazo_auth done
jobs admin_system hazo_jobs done
logs admin_system hazo_logs done
health env.migrate hazo_env done (env health/doctor diagnostics only — the env_migration/masking panels and their /env/*, /mask/* routes were removed in v0.13.0; see CHANGE_LOG.md)
audit audit.read hazo_audit stub (Phase 4)
settings settings.manage hazo_config stub (Phase 4)
api_keys apikeys.manage hazo_api stub (Phase 4)
blog blog.manage hazo_blog stub (Phase 4)
files files.manage hazo_files stub (Phase 4)
feedback feedback.review hazo_feedback stub (Phase 4)
issues admin_issue_triage hazo_admin (built-in) done (v0.5.0)
metrics metrics.view consumer-supplied component (e.g. hazo_umetrics) done (consumer-component)
arcade admin.arcade.manage consumer-supplied component (hazo_arcade/admin's GameConfigAdminPanel) done (consumer-component)
seo_redirects admin.seo_redirects.manage consumer-supplied component (built against hazo_seo's createRedirectService) done (consumer-component, no built-in panel UI yet)
metrics kind — consumer component pattern

The metrics kind has no hazo_admin dependency on hazo_umetrics. Instead, pass your metrics panel as a component prop on the section:

import { MetricsPanel } from 'hazo_umetrics';

const MANIFEST = {
  sections: [
    { kind: 'metrics' as const, component: <MetricsPanel /> },
  ],
};

If no component is supplied, the panel renders a placeholder message. This keeps hazo_admin dependency-free from any metrics package.

Issues system (v0.5.0)

The issues nav kind provides a built-in queue for actionable admin events — e.g. a user lacking a required permission triggers an issue that the nearest-scope admin can grant or deny.

Registering the issues section
const MANIFEST = {
  sections: [
    { kind: 'issues' as const },
    // custom permission if needed:
    // { kind: 'issues' as const, permission: 'my_custom_triage_perm' },
  ],
};

The default gate permission is admin_issue_triage. Add it to your hazo_permissions table and assign it to admin roles.

Issue types — consumer-defined

hazo_admin ships with zero built-in issue types. Consumers register types at boot:

import { registerIssueType } from 'hazo_admin';

registerIssueType({
  key: 'auth_permission',
  label: 'Permission Request',
  actions: [
    {
      key: 'grant',
      label: 'Grant',
      async run(issue, params, ctx) {
        // call hazo_auth to assign role or permission
        const connect = await ctx.getHazoConnect();
        // ... grant logic ...
        return { data: { roleId: params.roleId } };
      },
    },
    {
      key: 'deny',
      label: 'Deny',
      async run(issue, params, ctx) { /* optional deny side-effects */ },
    },
  ],
  buildResolutionNotice(issue, actionKey, result) {
    return {
      subject: actionKey === 'grant' ? 'Access granted' : 'Access denied',
      body: 'Your permission request has been reviewed.',
      deep_link: '/dashboard',
    };
  },
});
Custom card renderers (client)

Override how a type's issue card looks in the IssuesPanel:

import { registerIssueCardRenderer } from 'hazo_admin/client';

registerIssueCardRenderer('auth_permission', ({ issue, onTransition }) => (
  <div>
    <h3>{issue.title}</h3>
    <button onClick={() => onTransition('wip')}>Take it</button>
  </div>
));

If no renderer is registered for a type, DefaultIssueCard is used.

Issue routing config

Add to hazo_admin_config.ini:

[issue_routing]
; Map issue types to recipient strategies.
; Supported strategies: nearest_scope_admin
auth_permission = nearest_scope_admin
API routes (via createAdminPresetRoutes)
Method Path Description
GET /issues List issues (filtered by admin's scope)
GET /issues/:id Get single issue
POST /issues/:id/transition Transition status — free-form: any known status → any other known status
POST /issues/:id/assign Assign to a user
POST /issues/:id/assign-to-me Assign to the authenticated actor (derived from the admin gate, not client input)
POST /issues/:id/resolve Run an action + close the issue
POST /issues/archive-sweep Move closed issues older than the configured cutoff to archived — global admins only (403 otherwise)
GET /issues/assignees List all users assignable to issues ({ user_id, label, avatarUrl }, for the reassign picker)

Scoped admins only see issues within their assigned scopes. Global admins (admin_system) see all.

Statuses: new / wip / on_hold / closed / archived. on_hold renders as a parked lane after Closed on the board. Transitions are unrestricted (only an unknown target status is rejected); → wip still auto-assigns the actor.

Drop-in IssuesPanel (v0.10.0, filter bar + owner picker updated in v0.11.0)

Mount the Issues triage board on its own, without the full AdminApp shell:

import { IssuesPanel } from 'hazo_admin/ui/issues_panel';

export default function AdminIssuesPage() {
  return <IssuesPanel basePath="/api/admin" currentUserId={currentUserId} />;
}

Importing a single panel standalone (v0.17.0): hazo_admin/ui is a barrel — it re-exports AdminApp, which statically imports every built-in panel. If you only want one panel, import it from its own subpath instead (hazo_admin/ui/jobs_panel, hazo_admin/ui/logs_panel, hazo_admin/ui/issues_panel, etc. — one entry per file under src/components/) so your bundle never evaluates the other panels, or any optional peer dependency only they need. This is more than tidiness: v0.14.1 fixed a real bug where one panel's optional-peer import broke AdminApp/hazo_admin/ui for every consumer, even ones who never mounted that panel. Each panel already lazy-loads its own heavy optional dependency (hazo_jobs, hazo_logs, hazo_auth/client, …) at render time, not at import time, so a standalone subpath import is always safe even if that panel's own optional peer isn't installed — it renders a "not installed" message instead of throwing.

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 hazo_admin

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

CVE

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

Frame 2085668439 (1)
Group 1261154229