npm package report

Is @roomi-fields/notebooklm-mcp safe?

1 known vulnerability, worst severity HIGH.

cvss
7.1
high

severity out of 10

epss
not scored

chance of exploitation in 30 days

xyz score
not scored

CyberXYZ composite out of 10

fig. 01 — GHSA-jjhp-8crj-mppq, the advisory selected below

// 1 advisories

GHSA-jjhp-8crj-mppq

HIGHCVE-2026-61647
// summary

The vaultbatch MCP tool (and the equivalent POST /batch-to-vault HTTP endpoint) accepted a caller-supplied vaultdir path that was passed directly to path.resolve() + fs.mkdir() with no containment check. A caller — or a prompt-injected LLM driving the MCP — could therefore create directories and write .md / .json answer files anywhere the server process can write.

The slugprefix parameter had a parallel, smaller traversal vector: it was concatenated into the filename without sanitization, so a prefix containing / or .. could escape the resolved vault directory through the filename component.

// impact

File write (markdown + JSON sidecars) to any location writable by the server process. The written files are inert content (no code execution by themselves), but in a multi-user context — or when the MCP server is driven by an LLM that has read untrusted content (prompt injection) — this allows an attacker to plant files in sensitive locations (autostart folders, shell startup files, etc.) for downstream exploitation.

The vulnerability exists from v1.6.0 (when the HTTP /batch-to-vault endpoint was introduced) and v1.7.0 (when the same logic was exposed as the batchtovault MCP tool) through v2.0.2.

// patch

Fixed in v2.0.3:

• Opt-in containment via NOTEBOOKLMVAULTROOT env var. When set, vaultdir is resolved relative to that root and realpath-based containment is enforced. Absolute paths or .. segments outside the root are rejected with a clear error. • slugprefix is always sanitized. Path separators (/, \), .. sequences and NUL bytes are stripped, length capped at 64 characters. This applies regardless of whether NOTEBOOKLMVAULTROOT is set. • 15 unit tests in src/tests/vault-writer.test.ts cover the escape vectors (absolute paths, sibling-prefix attacks, .. traversal, NUL/separator stripping).

Workarounds for users who cannot upgrade

• Run the MCP server under a dedicated unprivileged user with write access only to the intended vault directory. • Do not expose the HTTP /batch-to-vault endpoint beyond localhost. • If using an LLM that ingests untrusted content, validate any vaultdir arguments before forwarding them to the MCP.

Configuration requirement after upgrade (important)

v2.0.3 preserves the legacy unrestricted behaviour when NOTEBOOKLMVAULTROOT is unset, to keep existing single-user local setups working. To enable containment, set NOTEBOOKLMVAULTROOT in the server environment to a directory that should bound all vault writes.

// credit

Reported by @mcfly-zzh — thanks for the careful diagnosis and follow-up verification.

// cvss v4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
VC
N
VI
H
VA
N
SC
N
SI
N
SA
N
Affected
>= 1.6.0, < 2.0.3
Fixed in
2.0.3
Weakness
CWE-22, Path traversal
Published
2026-09-22
Sources
github
// references

// dependencies

0 direct

Create a free accountfor dependency paths and remediation
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


Checked 2026-09-22 at 17:31 UTC. The most recent advisory here was published 2026-09-22. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is @roomi-fields/notebooklm-mcp safe? npm package security report | CyberXYZ