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

decocms

Latest version: v4.629.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: camudo, guitavano
418 Stars
60 Forks
175 Versions
85.5K Downloads
TypeScript Repo language

Scan summary

decocms was last scanned on 24 Nov 2026 at version 4.629.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 175 versions; the latest 5 were published on 24 Nov 2026.
  • Findings: 1 rule fired in version 4.629.0 (2 instances: 2 medium). The score describes this version only.
  • Downloads: 85,532 downloads.

Versions

175 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.629.0 LATEST 24 Nov 2026 1 rule fired
4.628.4 24 Nov 2026 1 rule fired
4.628.3 24 Nov 2026 1 rule fired
4.628.2 24 Nov 2026 Not shown
4.628.1 24 Nov 2026 Not shown

Rules fired in 4.629.0: 1

Findings

2 Medium

Findings for v4.629.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.

Function reached through a chain of indirect calls

The code obtains a function through a computed property lookup whose key is not a plain literal, calls it, and then calls the value it returns. Obfuscated loaders use this double indirection to reach the Function constructor without its name appearing in the source. This is a code shape, not evidence of intent, and is shown to help review obfuscated code.

MEDIUM
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 4.629.0; other versions have their own rules, not their own score.

README

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

Studio API

Provides the Bun and Hono backend, worker runtime, and distributable CLI for deco Studio.

Attribute Value
Workspace decocms (apps/api)
Kind Hono API, worker, and CLI
Runtime Bun
Distribution npm decocms; GHCR studio image

Overview

Studio API is the authoritative server for Studio. It authenticates users and MCP clients, applies organization and project permissions, persists application state, proxies MCP traffic, dispatches durable work, and exposes operational health and telemetry endpoints.

The workspace also produces the decocms npm package and its deco executable. The combined Studio build places the web bundle from apps/web/dist in apps/api/dist/client, so the released CLI and API container can serve the complete product from one artifact.

Responsibilities

  • Serve Hono HTTP, OAuth, MCP, health, metrics, and organization-scoped API routes.
  • Configure Better Auth, API keys, SSO, organization membership, and RBAC.
  • Run Kysely and Better Auth migrations against PostgreSQL.
  • Own database adapters, credential encryption, object storage, and the token vault.
  • Define built-in MCP tools through defineTool() and execute them with a StudioContext.
  • Proxy downstream MCP connections and enforce credentials and permissions.
  • Coordinate DBOS workflows, automations, event delivery, NATS messaging, and the hosted AgentSandbox provider.
  • Emit OpenTelemetry traces, metrics, and logs and query monitoring backends.
  • Package the production server, migration runner, CLI, and staged web assets.

Usage

Start the complete development environment from the repository root:

docker compose up --build --watch

Compose runs dependencies and migrations before the API, syncs source changes, and keeps installed dependencies and generated artifacts inside Linux. See CONTRIBUTING.md for setup and lifecycle commands.

The API listens on port 3000 by default, while the web app listens on port 4000.

To run only the API when its PostgreSQL, NATS, and object-storage dependencies are already available:

bun run --cwd=apps/api dev

The host development command starts only the hot-reloading API. It does not start dependency services or run migrations; configure them explicitly. dev:server is the same direct server entry point.

Run released Studio with Docker Compose or the Helm chart. The npm CLI remains available for application scaffolding and connection tooling; it no longer provisions a local runtime.

Build both apps into the combined production distribution, then run it:

bun run build:studio
bun run --cwd=apps/api start

Use bun run build:api when only the server bundle is required. It does not stage the web client.

Architecture

Requests enter through src/index.ts and the Hono application in src/api/app.ts. The API resolves authentication and organization context, constructs a StudioContext, and delegates to routes, tools, storage adapters, or durable workers.

Browser, CLI, or MCP client
           |
           v
    Hono routes and auth
           |
           v
       StudioContext
      /      |       \
 storage   tools    MCP proxy
    |        |          |
 PostgreSQL/DBOS   downstream MCPs
           |
       NATS and workers

Key paths:

Path Purpose
src/api/ Hono application, middleware, and HTTP/MCP routes
src/auth/ Better Auth, OAuth, SSO, email, and organization setup
src/core/ StudioContext, access control, configuration, and tool primitives
src/tools/ Built-in MCP management tools grouped by domain
src/database/ and src/storage/ Database setup, Kysely adapters, and domain persistence
src/dbos/ and src/dispatch-queue/ Durable workflows and queue coordination
src/event-bus/ and src/nats/ SSE fan-out and shared NATS infrastructure
src/encryption/ and src/vault/ Credential encryption and secure token access
src/sandbox/ Hosted agent-sandbox lifecycle and preview routing
src/observability/ and src/monitoring/ Telemetry export and monitoring queries
migrations/ Ordered Kysely migrations
scripts/ Bundle, contract-generation, migration, and smoke-test utilities

Canonical organization-scoped routes use /api/:org/.... Keep compatibility routes isolated and deprecated; new API and web code must use the canonical paths.

Blocks v8 sites

A project is a Blocks v8 site only while its "Blocks v8 site" switch is on (metadata.blocksV8, read by isBlocksV8Project in @decocms/shared/blocks-major). It is the single source of truth for every v8 gate, in this API and in the web app. Only an organization owner or admin flips it: in the project's settings (CMS tab), or with blocksV8 on COLLECTION_VIRTUAL_MCP_UPDATE. A client metadata write that would change it is refused. deco schema push (PUT /api/cms/:site/schema) never changes it, and is refused with 409 not_blocks_v8_site while it is off. Turning it off returns the project to the v7 editor, exactly as before.

Cutover: no data migration. A blocksMajor: 8 marker an earlier Studio wrote is ignored, so every existing project starts as v7. The one v8 site in production, demo-storefront, needs an organization admin to turn on "Blocks v8 site" in its project settings once this ships; until then its schema push is refused and Studio opens it with the v7 editor.

Development

Run API checks from the repository root:

bun run --cwd=apps/api check
bun run --cwd=apps/api test
bun test apps/api/src/settings/resolve-config.test.ts
bun run --cwd=apps/api build:server

The workspace test script runs Bun tests under apps/api/src. Before adding or changing tests, read TESTING.md to choose the right tier.

Run schema operations explicitly with:

bun run --cwd=apps/api migrate
bun run --cwd=apps/api better-auth:migrate
Querying local Postgres

Query the Compose database without publishing its port:

docker compose exec postgres psql -U studio -d studio

Use the same Compose project name and overrides as the development stack.

Follow the repository verification instructions.

Boundaries

  • apps/api owns server-only behavior, environment access, persistence, migrations, authentication, and infrastructure integration.
  • apps/web consumes the API over HTTP and MCP. The API must not import web implementation modules.
  • Put isomorphic wire contracts and browser-safe utilities in explicit @decocms/shared/* exports. Do not move server adapters or secrets into the shared package.
  • Packages must not import from apps/api/src; expose a package-level contract instead.
  • MCP tools receive dependencies through StudioContext. They do not read Hono contexts, database drivers, or environment variables directly.
  • New organization-scoped endpoints live under /api/:org/...; do not extend deprecated unscoped route families.
  • The API owns the backend domain term thread. User-facing web copy renders that concept as a chat.

Configuration

Host dev:server loads apps/api/.env because the workspace command runs with apps/api as its current directory. Compose supplies container environment variables explicitly. Services use configured endpoints; the CLI does not start PostgreSQL, NATS, or object storage.

Core settings include:

Setting Purpose Default
PORT API listener port 3000
DATA_DIR Runtime files and local telemetry ~/deco
BASE_URL Public origin used in generated URLs http://localhost:<PORT>
DATABASE_URL PostgreSQL connection postgresql://postgres:postgres@localhost:5432/postgres; Compose supplies its service URL
NATS_URL NATS connection, optionally comma-separated nats://localhost:4222; Compose supplies its service URL
BETTER_AUTH_SECRET Stable Better Auth signing secret Set explicitly in production
ENCRYPTION_KEY Stable credential-vault key Set explicitly in production
CONFIG_PATH Theme, logo, and monitoring JSON configuration ./config.json
STUDIO_DISPATCH_ROLE Queue role: all, api, or worker all
STUDIO_AGENT_SANDBOX_ENABLED Enable hosted AgentSandbox provisioning false
STUDIO_SANDBOX_CONTROL_PLANE_URL / STUDIO_SANDBOX_CONTROL_PLANE_TOKEN Ask a remote host (the control plane) for sandboxes instead of running them in-process; Studio pushes their credentials to it every 10 minutes Unset: in-process
CLICKHOUSE_URL Optional ClickHouse monitoring endpoint Local monitoring backend

Authentication providers use AUTH_* variables. The validated list lives in src/auth/auth-env.ts. config.json no longer configures authentication; its auth key is ignored. Use config.example.json for the supported theme, logo, monitoring, and organization-default shape.

Deployment-specific database, NATS, object-storage, telemetry, worker, and sandbox settings are documented with the Helm chart.

Related documentation

  • Studio web app
  • Repository guidelines
  • Testing strategy
  • Studio Helm chart
  • Project license

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 decocms

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

CVE

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

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

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