---
canonical: "https://firewall.lpm.dev/npm/@treasure-ai/treasure-deck/v/2026.11.3"
markdown: "https://firewall.lpm.dev/npm/@treasure-ai/treasure-deck/v/2026.11.3.md"
package: "@treasure-ai/treasure-deck"
report_status: "published"
title: "@treasure-ai/treasure-deck@2026.11.3 npm security report"
verdict: "suspicious"
version: "2026.11.3"
---

# @treasure-ai/treasure-deck@2026.11.3 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 15 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 2026.11.3
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The package automatically adds runtime analytics to every built deck. The collection is disclosed and anonymous, but there is no way to turn it off, so this warrants a telemetry warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-11-08T17:26:56.171Z
- **Finished:** 2026-11-08T17:28:04.353Z
- **Download time:** 503 ms
- **Static scan time:** 2352 ms
- **AI review time:** 65327 ms
- **Total time:** 68182 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Built decks automatically include disclosed runtime analytics, but provide no opt-out.

- **Trigger:** A viewer opens a deck generated by `deck build`.

- **Impact:** Deck and slide titles, viewing behavior, and page context are reported to the publisher's analytics service without a documented way to disable collection.

- **Evidence paths:** dist/cli.js, dist/analytics.js, docs/commands.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-08T17:28:04.353Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The generated page loads Treasure Data's SDK and sends anonymous open, slide-view, and feature-action events with deck and viewing metadata.

- **Rationale:** The package automatically adds runtime analytics to every built deck. The collection is disclosed and anonymous, but there is no way to turn it off, so this warrants a telemetry warning.

- **Files touched:** dist/cli.js, dist/analytics.js, docs/commands.md

- **Network endpoints:** cdn.treasuredata.com, us01.records.in.treasuredata.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 88.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Every `deck build` adds analytics to the generated HTML; no analytics opt-out was found., When a built deck is viewed, the script sends anonymous view, slide, and action metrics to Treasure Data., The documentation discloses the analytics and describes the collected fields, including deck and slide titles and the SDK's page URL and referrer.

- **Evidence against:** The analytics uses anonymous mode and assigns no persistent client or global ID., The updater checks the registry only for a newer version of this package and updates only a detected global install., The manifest declares no install, preinstall, or postinstall lifecycle scripts.

## Affected versions and remediation

This report applies to @treasure-ai/treasure-deck@2026.11.3.

- Review the evidence and your use of @treasure-ai/treasure-deck@2026.11.3 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/build.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/dist/build.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L112: export const SOURCE_FORMAT = 1;
L113: const editCore = () => createRequire(import.meta.url)(path.join(RUNTIME_DIR, 'edit-core.cjs'));
L114: /** `source` with its frontmatter's `theme:` set to `theme`, unless it names that theme already. */
```

### 3. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/dev.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/dist/dev.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L3: import { createReadStream, existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';
L4: import { execFile, spawn } from 'node:child_process';
L5: import { createInterface } from 'node:readline';
L6: import { createServer } from 'node:http';
L7: import { createServer as createNetServer } from 'node:net';
...
L50: // Line by line, so a URL split across chunks is read whole.
L51: createInterface({ input: child.stdout }).on('line', (line) => {
L52: const url = found ? undefined : / at (http:\/\/127\.0\.0\.1:\d+)$/.exec(line)?.[1];
...
L79: function systemOpen(url) {
L80: const [cmd, args] = process.platform === 'darwin' ? ['open', [url]]
L81: : process.platform === 'win32' ? ['cmd', ['/c', 'start', '""', url]] : ['xdg-open', [url]];
...
L123: window.close();
```

### 4. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 5. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 6. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 7. High: Entrypoint Foreign Package Code Overwrite
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/update.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/dist/update.js>)

Manifest-reachable source overwrites another installed package with package-defined remote behavior.

Public source snippet (untrusted):

```javascript
Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/update.js:
import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, unlinkSync, writeFileSync } from 'node:fs';
writeFileSync(tmp, JSON.stringify(next, null, 2) + '\n');
writeFileSync(file, '');
* npm's is recognized by its layout, `<prefix>/lib/node_modules/<package>` with `<prefix>/bin/deck` linking to it
* (`<prefix>/node_modules/<package>` and `<prefix>/deck.cmd` on Windows), not by `npm root -g`: npm masks parts of
if (path.join(modules, PACKAGE_NAME) === root && path.basename(modules) === 'node_modules') {
const registry = (env.npm[redacted] || env.NPM_CONFIG_REGISTRY || 'https://registry.npmjs.org').replace(/\/+$/, '
```

### 8. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/update.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/dist/update.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L6: */
L7: import { execFileSync, spawn } from 'node:child_process';
L8: import { createHash } from 'node:crypto';
...
L23: export function stateDirFor(packageRoot) {
L24: return path.join(homedir(), '.treasure-deck', createHash('sha256').update(real(packageRoot)).digest('hex').slice(0, 12));
L25: }
...
L56: try {
L57: return JSON.parse(readFileSync(statePath(dir), 'utf8'));
L58: }
...
L204: function packageManager(manager, args, env, inherit = false, query = false) {
L205: const win = process.platform === 'win32';
L206: // Windows runs .cmd files only through a shell, so it gets one quoted command line; the arguments are ours, never
```

### 9. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 10. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 11. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** vendor/mermaid/mermaid.min.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/vendor/mermaid/mermaid.min.js>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = vendor/mermaid/mermaid.min.js
kind = oversized_source_file
sizeBytes = 5494801
magicHex = [redacted]
```

### 12. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 13. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 14. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** runtime/edit-core.cjs\#virtual:string-array:round1
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/runtime/edit-core.cjs%23virtual%3Astring-array%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 15. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@treasure-ai/treasure-deck@2026.11.3/dist/cli.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = @treasure-ai/treasure-deck@2026.11.2
matchedIdentity = npm:[redacted]:2026.11.2
similarity = 0.871
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 7
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 6
- **Published dependency-graph edges:** 7

### Published dependency entries
- @wvlet/highlightjs-wvlet ^2026.3.0 (Dependency)
- highlight.js ^11.12.0 (Dependency)
- markdown-it ^15.0.3 (Dependency)
- markdown-it-attrs ^5.0.1 (Dependency)
- markdown-it-bracketed-spans ^1.0.3 (Dependency)
- vite ^8.3.3 (Dependency)
- yaml ^2.9.1 (Dependency)

## Package metadata
- **Package:** @treasure-ai/treasure-deck
- **Ecosystem:** npm
- **Version:** 2026.11.3
- **License:** SEE LICENSE IN LICENSE.md
- **Version published:** 2026-11-08T17:07:42.941Z
- **Package first seen:** 2026-10-15T20:28:34.580Z
- **Package last seen:** 2026-11-14T06:44:52.767Z
- **Known versions:** 23
- **Latest version:** 2026.11.10
- **Appeal under review:** No
- **Description:** Markdown presentations without \<div\> markup: four layouts, themes, and a single-file HTML output that publishes to Apps Script
- **Maintainers:** xerial
- **Keywords:** slides, presentation, markdown, deck, treasure-ai
- **Runtime engines:** node: \>=22
- **Artifact files:** 170
- **Artifact unpacked size:** 7,479,262 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@treasure-ai/treasure-deck/v/2026.11.3>)
- [Repository](<https://github.com/treasure-data/treasure-deck>)
- [Homepage](<https://www.npmjs.com/package/@treasure-ai/treasure-deck>)
- [Issues](<https://github.com/treasure-data/treasure-ai-labs/issues>)
