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

@cossackframework/studio

Latest version: v0.9.7

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: tanftw
3 Stars
0 Forks
9 Versions
940 Downloads
TypeScript Repo language

Scan summary

@cossackframework/studio was last scanned on 29 Nov 2026 at version 0.9.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 4 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.9.7.
  • Downloads: 940 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.7 LATEST 29 Nov 2026 No rules fired
0.9.5 28 Nov 2026 No rules fired
0.9.4 27 Nov 2026 No rules fired
0.9.3 25 Nov 2026 Not shown
0.9.2 17 Nov 2026 Not shown

No rules fired in 0.9.7

Findings

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

README

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

Cossack Studio

@cossackframework/studio is the Node-only database inspector bundled with the Cossack CLI. It loads orm.config.ts through the application's installed ORM tooling.

cossack add studio
pnpm install
pnpm studio

The default command opens a loopback-only Studio session for the configured local adapter:

cossack studio
cossack studio --no-open --port 4983
cossack studio --driver postgres

The printed launch URL contains a one-time token. The first visit exchanges it for an HttpOnly, SameSite=Strict session cookie and the token stops working; later visits from the same browser use the cookie. To open Studio in another browser or profile, restart it to get a new launch URL.

Remote D1 uses the project's authenticated Wrangler installation:

cossack studio --remote
cossack studio --remote --database DB --env production

Studio supports Cloudflare D1, SQLite, Turso, PostgreSQL, and MySQL schema inspection. It shows exact row counts and adjustable pagination, with 100 rows by default. It supports inline and JSON-aware keyed row editing. It runs one arbitrary SQL statement per execution. Its SQL editor includes syntax highlighting plus table and column completion. Remote D1 changes affect deployed data immediately. The console shows up to 1,000 rows and asks the database for at most 1,001, so the extra row tells it that the result is truncated. Studio appends LIMIT 1001 to a SELECT or WITH query that has no top-level LIMIT, OFFSET or FETCH, and wraps other queries in SELECT * FROM (…) AS __q LIMIT 1001.

Batch delete and batch update apply all or nothing on SQLite, Turso, PostgreSQL and MySQL: Studio runs them in one transaction and rolls back if a selected row is stale or a statement fails. D1 (local and remote) has no interactive transactions, so batches there are best-effort. Rows changed before the failure stay changed, and the error reports how many. Remote D1 sends up to 50 statements in one Wrangler call, as one D1 batch: a failing statement rolls back the rows of its own call, but a stale row does not stop the other rows in the same call.

Studio groups remote D1 statements into few Wrangler calls, because each call starts a Wrangler process. A schema load takes three or four calls, whatever the number of tables. A browse takes one call, and the Pragmas tab takes one call after the first visit.

For local connections, Studio detects the ORM driver's dialect. DB_CONNECTION or COSSACK_STUDIO_DRIVER can distinguish SQLite-family adapters. PostgreSQL and MySQL drivers remain project dependencies. Studio executes through the ORM driver and never exposes credentials to browser code. Project .env and .dev.vars files are loaded into the Studio server process before orm.config.ts is imported. Existing shell variables keep precedence.

On PostgreSQL and MySQL, a schema load runs four queries whatever the number of tables: the table and view list, then the columns, indexes and foreign keys of the whole schema. The first load also reads the server version. On PostgreSQL, keys, foreign keys and view definitions come from pg_catalog, so a role that can only SELECT the tables sees the same schema as their owner. MySQL keeps each object's CREATE statement in SHOW CREATE, one query per object, so the Structure tab loads it when it shows that object. Programmatic callers use StudioDatabase.getDefinition(name); objects whose definition is not loaded yet have sqlDeferred: true.

Studio merges physical introspection with orm.schema(), displays logical types and relation provenance, surfaces drift, and hides migration bookkeeping. The introspected schema is cached. Studio invalidates it after SQL console statements that may change the schema (DDL, writes, SELECT … INTO, PRAGMA writes) and after pragma edits. The Browse tab's refresh button re-introspects to pick up changes made outside Studio.

The "Database capabilities and migrations" panel loads inspection on demand when it is opened: the shared read-only database facts used by cossack orm schema inspect --json. Programmatic callers use StudioDatabase.getInspection(); getSchema() includes inspection only after it has been loaded. These facts include the selected target and environment, driver/dialect capabilities, physical and model schema, known relationships, and applied, pending or changed migrations. Inspection does not create migration bookkeeping tables or apply migrations. Credential fields and temporary connection identities are excluded.

For programmatic inspection of a configured project:

import { inspectStudioProject } from '@cossackframework/studio';

const facts = await inspectStudioProject({
  projectRoot: process.cwd(),
  environment: 'staging',
  target: 'local',
  binding: 'STAGING_DB',
});

The project adapter receives the selected environment and target with readOnly: true. The optional binding must match the inspected target. Named environments must select their own configured binding. An absent binding must fail rather than use an unrelated top-level database. Temporary inspection connections close after success or failure. An existing local Studio connection keeps ownership of its borrowed ORM until Studio closes it.

Storage-oriented SQLite declarations can retain richer application semantics through model decorators:

@Column({ type: 'json', name: 'meta', nullable: true })
declare meta: Record<string, unknown> | null;

@CreateDateColumn({ name: 'created_at' })
declare createdAt: Date;

The Structure tab shows both the ORM type (json, datetime) and physical database type (TEXT, VARCHAR(32)). The Browse tab adds relation-property columns for navigable ORM relations. Selecting one toggles a read-only related table directly below that row, loaded through the corresponding foreign-key filter. Relation data is fetched lazily and capped at 50 rows per expansion. The panel's new-tab action opens the fully browsable filtered relation.

For programmatic startup:

import { runStudio } from '@cossackframework/studio';

await runStudio({
  projectRoot: process.cwd(),
  // Optional when a custom dialect wrapper cannot be detected:
  // provider: 'postgres',
  remote: false,
  port: 4983,
  open: true,
});

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 @cossackframework/studio

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

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

Frame 2085668439 (1)
Group 1261154229