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

@kozou/svelte-ui

Latest version: v1.21.2

Overview

Last scanned
15 Nov 2026
Published
15 Nov 2026
npm package Publisher: takashi-matsuyama
2 Stars
0 Forks
7 Versions
569 Downloads
TypeScript Repo language

Scan summary

@kozou/svelte-ui was last scanned on 15 Nov 2026 at version 1.21.2. Risk score 45 of 100 (medium). High-severity rules fired.

  • Releases: 7 versions; the latest was published on 15 Nov 2026.
  • Findings: 1 rule fired in version 1.21.2 (1 high). The score describes this version only.
  • Downloads: 569 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.21.2 LATEST 15 Nov 2026 1 rule fired
1.21.1 6 Nov 2026 No rules fired
1.21.0 19 Oct 2026 No rules fired
1.20.1 19 Oct 2026 Not shown
1.20.0 18 Oct 2026 Not shown

Rules fired in 1.21.2: 1

Findings

1 High

Findings for v1.21.2. 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.

Encoded data placed in a DNS lookup

A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

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

README

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

@kozou/svelte-ui

SvelteKit + Svelte 5 Admin UI for Kozou. Reads a SchemaContext from @kozou/core and talks to a backend through the DataAdapter interface defined there. Used standalone, its default adapter speaks PostgREST; under kozou dev the default is Kozou's bundled in-house REST backend (@kozou/api).

Status: published to npm as @kozou/svelte-ui. The package ships only the adapter-node build/ artifact; host integration via kozou dev shipped in v0.1.1.

Stack

Layer Pick
Framework SvelteKit 2 / Svelte 5
Adapter @sveltejs/adapter-node
Styling Tailwind v4 + shadcn-svelte design tokens
Forms sveltekit-superforms + zod 4
Tables Plain <table> markup; sort and pagination links from @kozou/ui-core
HTTP fetch via the DataAdapter interface from @kozou/core

Routes

Path Purpose
/ Dashboard — list every table + view in the introspected schema
/tables/[table] Table listing with URL-driven search / sort / pagination
/tables/[table]/new Create record — zod-validated form, superforms-backed
/tables/[table]/[id] Detail view + ?/delete form action
/tables/[table]/[id]/edit Edit record
/views/[view] Read-only view listing

Relation pickers

The create / edit forms render a searchable picker for foreign-key columns:

  • a single-column FK gets a picker when it references the target's single-column primary key and the target's label column is text-searchable; otherwise the column stays a plain scalar input the operator types.
  • a composite (multi-column) FK becomes ONE picker that fills every key column at once, when it references the target's primary key (any column order), the target's label is text-searchable, and none of its columns is shared with another foreign key. Ineligible relations keep scalar inputs.
  • the forms also work without JavaScript: the picker submits natively and an untouched save keeps the current values.

Known limitation: a key containing an empty-string component cannot be picked or round-tripped through the form — '' is the picker contract's unselected sentinel (shared with the single-column picker). Such rows remain manageable through the API.

Picker eligibility and the all-or-nothing composite write are UI-level conveniences, not an enforcement boundary: the form actions validate per-column shapes and forward the payload through the configured adapter (including service-token mode under kozou dev), and the same composite component columns are individually editable wherever the relation is not picker-eligible. Row-level invariants belong to PostgreSQL constraints and RLS — the project's enforcement posture.

Query parameters on the list / view routes:

  • ?q=<text> — case-insensitive search across the resolved text-like columns.
  • ?sort=col:asc,col2:desc — one or more sort segments.
  • ?page=<n> — 1-based; defaults to 1.
  • ?pageSize=<m> — defaults to 50.

Local development

Required environment variables (Node 20+, pnpm 9+):

  • DATABASE_URL — PostgreSQL connection string. Used by hooks.server.ts to introspect the schema on first request.
  • KOZOU_ADAPTER_URL — base URL of the backend the DataAdapter talks to (default http://localhost:3000).

Optional, both concerning the "Connect an AI agent" page:

  • KOZOU_MCP_HTTP_PORT — port the co-located MCP Streamable HTTP server listens on, used to build the copy-paste client config (default 3334). kozou dev sets this from its own config.

  • KOZOU_UI_MCP_POSTURE — how the MCP endpoint runs, which decides whether the connection page exists and what it says about authentication. kozou dev sets it from its own config on every run:

    • off — no listener (server.mcp.http.enabled: false). The page 404s and both links to it (the header link and the dashboard card) are gone, so nothing advertises an endpoint that is not listening. Set this yourself when you run this server standalone next to no MCP endpoint.
    • local — serving with no authentication (the loopback default).
    • oauth — serving as an OAuth 2.1 protected resource (server.mcp.http.auth). The config snippets keep the same shape — one URL, no client secret, since a client discovers the authorization server from the endpoint itself — but the URL comes from KOZOU_UI_MCP_RESOURCE rather than the request host.

    Absent reads as local, which is the posture a standalone UI is in. A value this build does not recognize (a typo, or a newer CLI) still offers the page, resolving the address the way local does, but says nothing about authentication rather than guessing.

  • KOZOU_UI_MCP_RESOURCE — the canonical resource URI (server.mcp.http.auth.resource) to hand out in the oauth posture, used verbatim including its path. kozou dev sets it whenever that block exists. Without it the page builds the endpoint from the browser's request host and the MCP port, which is wrong behind the proxy or tunnel that makes resource necessary in the first place. Ignored in the other postures, where nothing declared a canonical URI.

  • KOZOU_UI_MCP_ADVERTISED_URL — the same thing for the postures with no auth block (server.mcp.http.advertisedUrl): the address clients reach the endpoint at, when that differs from the port it binds — a remapped published port, a tunnel, a devcontainer, a proxy. Used verbatim, path included; the CLI refuses any path but /mcp, so what arrives here never describes an endpoint mounted under a path prefix. kozou dev sets it whenever the field is configured, and sets at most one of this and KOZOU_UI_MCP_RESOURCE. Ignored in the oauth posture, where resource is the address clients discover.

# from the monorepo root
pnpm install

# build the SvelteKit production bundle (Node + client artifacts)
pnpm --filter @kozou/svelte-ui run build

# unit + integration tests
pnpm --filter @kozou/svelte-ui run test

# start the dev server
DATABASE_URL=postgres://kozou:kozou@localhost:5432/kozou \
  KOZOU_ADAPTER_URL=http://localhost:3000 \
  pnpm --filter @kozou/svelte-ui run dev

Building before running pnpm test exercises the smoke case in test/smoke/build.test.ts; the case is skipped (not failed) when the build artifacts are absent so a fresh checkout still gets a green pnpm test run.

Manual smoke checklist

Run the standalone dev server end-to-end against a real PostgreSQL and a REST backend at KOZOU_ADAPTER_URL (default http://localhost:3000). Standalone, this package's default adapter speaks PostgREST, so bring up a PostgreSQL and a PostgREST pointed at it:

  1. pnpm --filter @kozou/svelte-ui run dev — open http://localhost:5173/.
  2. Dashboard lists every table + view with description excerpts.
  3. Click into a table. The listing renders with search, sortable column anchors, and Prev / Next pagination.
  4. Use the search box (?q=…) — the URL updates and rows narrow.
  5. Click a sortable column twice — sort toggles asc → desc, ?sort= updates in the URL.
  6. Click + New — fill the form, submit. The browser lands on the detail page of the new row.
  7. From the detail page, click Edit, change a field, save. The detail page reflects the change.
  8. Click Delete — the row vanishes and the URL returns to /tables/[table].
  9. Visit /views/[view] — listing renders with no New / Edit / Delete controls (read-only).

Adapter boundary

Route code (src/routes/**) never imports PostgrestDataAdapter directly. The eslint config in the repository root (.eslintrc.cjs) enforces this: routes that try to hardcode a PostgREST URL, dereference a PGRST_* env var, or reference PostgREST by name fail lint. Routes go through getAdapter() in src/lib/server/adapter.ts, which constructs the configured adapter from KOZOU_ADAPTER_URL (default http://localhost:3000).

License

Apache 2.0. See LICENSE at the repository root.

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 @kozou/svelte-ui

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

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?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229