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

nx-kv-db

Latest version: v0.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: flowot
0 Stars
0 Forks
3 Versions
TypeScript Repo language

Scan summary

nx-kv-db was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 29 Nov 2026 No rules fired
0.1.0 29 Nov 2026 No rules fired
0.0.0-stage 29 Nov 2026 Not shown

No rules fired in 0.1.1

Findings

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

README

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

nx-kv-db

nx-kv 的外部数据库插件:在面板里浏览、编辑和查询本机 SQLite 数据库。

功能

  • 概览与导航:输入绝对路径打开任意 SQLite 文件;左侧列出表 / 视图,支持搜索、行数与类型标记;打开后自动概览并选中第一张表。
  • 数据网格(AG Grid Community):普通 rowid 表支持行内编辑,单元格修改先累计为 dirty,可一键保存 / 撤销;支持新增行、勾选删除、刷新。服务端分页 200 行/页。
  • 结构:查看 DDL、列(类型 / 非空 / 主键 / 默认值)、索引与外键。
  • SQL:多行编辑器,支持多语句与多结果集;默认只读执行,可显式切换到写模式;显示每条语句的影响行数 / rowid / 错误 / 耗时;结果可导出 CSV / JSON。
  • 最近记录:最近打开的文件(可移除)与最近执行的 SQL(可回填 / 清空)保存在插件自有存储里。
  • 全屏:插件在宿主注册 fullscreen: true 的页面,由宿主提供全屏按钮(Esc 退出)。

安装

作为外部插件登记到 nx-kv(插件目录位于 $NX_KV_HOME/plugins,默认 %USERPROFILE%\.nx-kv\plugins):

# 方式一:从 npm 安装并登记
nx-kv plugin add nx-kv-db

# 方式二:先安装到插件根目录,再让宿主扫描
npm install --prefix "$env:USERPROFILE\.nx-kv\plugins" nx-kv-db

安装后重启 nx-kv serve(插件在 serve 启动时加载,刷新面板不会生效),左侧栏出现「数据库」入口。

本地开发时也可以直接登记目录:

nx-kv plugin add D:\path\to\nx-kv-db

开发

插件只依赖 nx-kv 宿主提供的 nx-kv/plugin-sdk 与 nx-kv/plugin-sdk/client(插件生命周期 / UI 类型),构建期从 npm 安装宿主包:

{
  "devDependencies": { "nx-kv": "^0.75.0" }
}

这些子路径 SDK 在构建时会被内联进产物,因此发布出去的包不依赖宿主版本,运行期只要求宿主 API 版本匹配(nxkv.api = "^1")。

SQLite 的解析、行级 CRUD 与 SQL 执行都在本仓库的 src/server/sqlite.ts,属于插件自己的数据库实现; 宿主 / 插件 SDK 只提供插件生命周期、UI 外壳与 pretask / gettask 切入点,不内置数据库适配器。

本地联调宿主未发布的新改动时,可临时改成 file: 依赖指向宿主仓库:

{
  "devDependencies": { "nx-kv": "file:../nx-kv" }
}

此时宿主仓库需先构建 SDK(cd ..\nx-kv → pnpm run build:packages),再回到本仓库安装。

pnpm install
pnpm build     # tsc 类型检查 / 声明 + 打包 server(单文件 ESM)与 client(IIFE)
pnpm test      # node:sqlite 造临时库,覆盖安全 / 概览 / 分页 / 结构 / CRUD / 查询
npm pack --dry-run

构建产物:

  • dist/server/index.js:server 半侧单文件 ESM(SDK 已内联,只外置 node: 内置模块);
  • dist/server/index.d.ts:类型声明(package exports["./server"].types);
  • dist/client/client.js:IIFE,向 window.NxkvPluginHost.registerPlugin('db', …) 自注册;
  • dist/client/style.css:插件样式,前缀 .kvdb-,复用宿主 CSS 变量。

React / ReactDOM / jsx-runtime 由宿主通过全局 NxkvReact / NxkvReactDOM / NxkvJsxRuntime 注入,不打进插件 bundle。

安全说明

  • 路径校验:只接受绝对路径;文件必须存在且是普通文件;先校验 SQLite 3 文件头(SQLite format 3)再打开。
  • 只读开关:SQL 页默认使用只读连接(PRAGMA query_only 语义由只读打开保证),写语句会被 SQLite 拒绝;切换到写模式才会执行写入。
  • 行编辑边界:只有普通 rowid 表允许行编辑;视图、WITHOUT ROWID 表只读。更新时主键列与未知列会被忽略,不会拼进 SQL。
  • 标识符转义:表 / 视图名先查 sqlite_master 白名单,再用双引号转义;SQL 页是用户主动输入,属于本机可信操作,请自行确认后再执行写语句。
  • 插件自有存储:只记录最近文件路径与最近 SQL 文本,不复制用户数据库内容。
  • DB 适配器扩展:服务端通过 DbAdapter(kind / label + open / rows / structure / CRUD / query)抽象驱动,本期只内置 sqlite;未来可新增 MySQL / Redis 适配器文件并在 src/server/adapters/index.ts 登记。

全屏

src/client/index.tsx 注册:

pages: { home: { title: '数据库', fullscreen: true } }

宿主据此在页面右下角显示「全屏 / 退出全屏」按钮,并支持 Esc 退出;全屏只改变宿主页面外壳,不卸载页面组件,编辑状态不会丢失。

许可

MIT

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 nx-kv-db

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

CVE

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

Frame 2085668439 (1)
Group 1261154229