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

@payloadcms/admin-bar

Latest version: v4.0.0-internal.d90eddd

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: agarbutt-figma, alessiogr, danribbens, elliotpayload, fignate, german.jablo, jacobsfletch, jarrodmflesch, jesschow, jmikrut, patrikkozak, payloadjs, seanpayload
45,988 Stars
4,481 Forks
113 Versions
384.4K Downloads
TypeScript Repo language

Scan summary

@payloadcms/admin-bar was last scanned on 24 Nov 2026 at version 4.0.0-internal.d90eddd. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 113 versions; the latest 5 were published on 24 Nov 2026.
  • Findings: No rules fired in version 4.0.0-internal.d90eddd.
  • Downloads: 384,371 downloads.

Versions

113 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.0-internal.d90eddd LATEST 24 Nov 2026 No rules fired
3.94.2 24 Nov 2026 No rules fired
4.0.0-beta.12 24 Nov 2026 No rules fired
4.0.0-internal.1235217 24 Nov 2026 Not shown
4.0.0-canary.20261124 24 Nov 2026 Not shown

No rules fired in 4.0.0-internal.d90eddd

Findings

Findings for v4.0.0-internal.d90eddd. 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 4.0.0-internal.d90eddd; other versions have their own rules, not their own score.

README

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

Payload Admin Bar

An admin bar for React apps using Payload.

Installation
pnpm i @payloadcms/admin-bar
Basic Usage
import { PayloadAdminBar } from '@payloadcms/admin-bar'

export const App = () => {
  return <PayloadAdminBar cmsURL="https://cms.website.com" collection="pages" id="12345" />
}

Checks for authentication with Payload CMS by hitting the /me route. If authenticated, renders an admin bar with simple controls to do the following:

  • Navigate to the admin dashboard
  • Navigate to the currently logged-in user's account
  • Edit the current collection
  • Create a new collection of the same type
  • Logout
  • Indicate and exit preview mode

The admin bar ships with very little style and is fully customizable.

Dynamic props

With client-side routing, we need to update the admin bar with a new collection type and document id on each route change. This will depend on your app's specific setup, but here are a some common examples:

NextJS

For NextJS apps using dynamic-routes, use getStaticProps:

export const getStaticProps = async ({ params: { slug } }) => {
  const props = {}

  const pageReq = await fetch(
    `https://cms.website.com/api/pages?where[slug][equals]=${slug}&depth=1`,
  )
  const pageData = await pageReq.json()

  if (pageReq.ok) {
    const { docs } = pageData
    const [doc] = docs

    props = {
      ...doc,
      collection: 'pages',
      collectionLabels: {
        singular: 'page',
        plural: 'pages',
      },
    }
  }

  return props
}

Now your app can forward these props onto the admin bar. Something like this:

import { PayloadAdminBar } from '@payloadcms/admin-bar';

export const App = (appProps) => {
  const {
    pageProps: {
      collection,
      collectionLabels,
      id
    }
  } = appProps;

  return (
    <PayloadAdminBar
      {...{
        cmsURL: 'https://cms.website.com',
        collection,
        collectionLabels,
        id
      }}
    />
  )
}
Props
Property Type Required Default Description
cmsURL string true http://localhost:8000 serverURL as defined in your Payload config
adminPath string false /admin routes as defined in your Payload config
apiPath string false /api routes as defined in your Payload config
authCollectionSlug string false 'users' Slug of your auth collection
collectionSlug string true undefined Slug of your collection
collectionLabels { singular?: string, plural?: string } false undefined Labels of your collection
id string true undefined id of the document
logo ReactElement false undefined Custom logo
classNames { logo?: string, user?: string, controls?: string, create?: string, logout?: string, edit?: string, preview?: string } false undefined Custom class names, one for each rendered element
logoProps {[key: string]?: unknown} false undefined Custom props
userProps {[key: string]?: unknown} false undefined Custom props
divProps {[key: string]?: unknown} false undefined Custom props
createProps {[key: string]?: unknown} false undefined Custom props
logoutProps {[key: string]?: unknown} false undefined Custom props
editProps {[key: string]?: unknown} false undefined Custom props
previewProps {[key: string]?: unknown} false undefined Custom props
style CSSProperties false undefined Custom inline style
unstyled boolean false undefined If true, renders no inline style
onAuthChange (user: PayloadMeUser) => void false undefined Fired on each auth change
devMode boolean false undefined If true, fakes authentication (useful when dealing with SameSite cookies)
preview boolean false undefined If true, renders an exit button with your onPreviewExit handler)
onPreviewExit function false undefined Callback for the preview button onClick event)

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 @payloadcms/admin-bar

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229