Scan your whole stack
From OX Research Newsroom
Are you using @cmssy/next?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v19.38.0
@cmssy/next was last scanned on 30 Nov 2026 at version 19.38.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 19.38.0 LATEST | 30 Nov 2026 | No rules fired |
| 19.37.0 | 23 Nov 2026 | No rules fired |
| 19.36.1 | 19 Nov 2026 | No rules fired |
| 19.36.0 | 19 Nov 2026 | Not shown |
| 19.35.1 | 19 Nov 2026 | Not shown |
Findings for v19.38.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 19.38.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Next.js (App Router) bindings for a cmssy headless site.
One catch-all route renders your published cmssy content with local block
components, with live edit-mode preview built in. Pairs with
@cmssy/react (blocks + data).
pnpm add @cmssy/next @cmssy/react
// app/[[...path]]/page.tsx
import { createCmssyPage } from "@cmssy/next/server";
import { cmssy } from "@/cmssy/config";
import { blocks } from "@/cmssy/blocks";
import { CmssyEditor } from "@/cmssy/editor";
export default createCmssyPage(cmssy, blocks, { editor: CmssyEditor });
// cmssy/config.ts
import { defineCmssyConfig } from "@cmssy/next";
// defineCmssyConfig validates the required env vars and throws a clear error if
// any is missing - never mask them with `?? ""` (an empty org/slug builds a
// broken delivery URL like `/public//graphql`).
export const cmssy = defineCmssyConfig({
org: process.env.CMSSY_ORG_SLUG,
workspaceSlug: process.env.CMSSY_WORKSPACE_SLUG,
draftSecret: process.env.CMSSY_DRAFT_SECRET, // edit-mode preview handshake
// apiUrl + editorOrigin default to cmssy cloud; set them only for self-host/staging.
// Locales come from the workspace site config - no need to repeat them here.
});
createCmssyPage fetches the published page for the request path and renders
it; an unpublished page answers 404. It does not handle the editor - that needs
the edit route and proxy below. A published build does not require
editorOrigin.
The cmssy editor frames the page's own URL with
?cmssyEdit=1&cmssySecret=<draft secret>. The proxy verifies the secret and
rewrites that request to /cmssy-edit/..., which renders draft content with
your editor. Both files are required; without them the editor reports that
the preview did not respond.
// app/cmssy-edit/[[...path]]/page.tsx
import { createCmssyEditPage } from "@cmssy/next/server";
import { cmssy } from "@/cmssy/config";
import { blocks } from "@/cmssy/blocks";
import { CmssyEditor } from "@/cmssy/editor";
export const dynamic = "force-dynamic";
export default createCmssyEditPage(cmssy, blocks, { editor: CmssyEditor });
// proxy.ts (Next.js 16) - on Next.js 15 name it middleware.ts and export `middleware`
import { createCmssyProxy } from "@cmssy/next/middleware";
import { cmssy } from "@/cmssy/config";
export const proxy = createCmssyProxy(cmssy);
export const config = { matcher: ["/((?!_next/|api/|.*\\..*).*)"] };
proxy.ts sits next to app/ (in src/ when the app is src/app). Set the
workspace preview URL to the exact deployed origin, e.g.
https://my-site.vercel.app.
// app/api/draft/route.ts
import { createDraftRoute } from "@cmssy/next/server";
export const GET = createDraftRoute(cmssy);
// app/[[...path]]/page.tsx
export const revalidate = 3600;
const cache = { revalidate };
export default createCmssyPage(cmssy, blocks, { editor: CmssyEditor, cache });
// app/api/revalidate/route.ts
import { createCmssyRevalidateRoute } from "@cmssy/next/server";
export const POST = createCmssyRevalidateRoute({
secret: process.env.CMSSY_WEBHOOK_SECRET,
});
cache puts the SDK's published reads into the Next data cache under the
cmssy-content tag; the route expires that tag for a verified content.changed
webhook. Draft mode and the editor always read live.
createCmssyProxy already sets it on editor requests. For a hand-written proxy,
applyCmssyCsp(response, { editorOrigin: cmssy.editorOrigin }) from
@cmssy/next/middleware lets the cmssy editor frame the response.
The active locale lives in the URL path prefix (/en/about; the default locale
stays bare). createCmssyPage resolves it and exposes it via CmssyLocaleProvider.
For the locale to survive navigation, internal links must carry the prefix -
prefix hrefs yourself with localizeHref and pass the result to next/link:
// any block component
import Link from "next/link";
import { localizeHref } from "@cmssy/next";
<Link href={localizeHref("/about", locale)}>About</Link>; // → /en/about while EN is active
The root layout can't read the path, so the proxy resolves the locale from the
path prefix: the createCmssyProxy from the editor section already does it.
localizeHref(href, locale) and the CMSSY_LOCALE_HEADER constant are
re-exported from @cmssy/next (and @cmssy/core).
@cmssy/next/server: createCmssyPage, createCmssyEditPage,
createDraftRoute, createCmssyRevalidateRoute, createCmssyBlockDataRoute,
CmssyLayoutSlot,
resolveCmssyLayout, isCmssyEditMode. @cmssy/next/middleware:
createCmssyProxy, cmssyEditRewrite, applyCmssyCsp, isCmssyEditRequest.
Root: defineCmssyConfig, localizeHref, nextRetryMode, cmssyCachedFetch,
CMSSY_CONTENT_TAG and the types. The full list, with signatures, is in
docs/reference/sdk-api.md.
Pinning this package does not pin the API it talks to. The package version covers this client - its exports and their behaviour, normal semver. The cmssy delivery API is a hosted service whose GraphQL schema can change on any deploy, without a release here.
There is no dated API version to pin; the delivery endpoint has no version
segment. What protects you today is that a breaking schema change cannot merge
silently - it is caught by a gate that validates the SDK's own operations, and
shipping one anyway takes a recorded approval - and that fields we intend to
remove are marked @deprecated first. There is no guaranteed deprecation window
and no minimum notice period. Details in
@cmssy/core.
MIT
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.