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

@aiquants/markdown

Latest version: v17.1.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: fehde, fehde-k
68 Versions
7.7K Downloads

Scan summary

@aiquants/markdown was last scanned on 27 Nov 2026 at version 17.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 68 versions; the latest 5 were published within 5 days (23–27 Nov 2026).
  • Findings: 1 rule fired in version 17.1.0 (1 low). The score describes this version only.
  • Downloads: 7,730 downloads.

Versions

68 versions published
Versions and the rules that fired in each
VersionPublishedStatus
17.1.0 LATEST 27 Nov 2026 1 rule fired
17.0.1 27 Nov 2026 1 rule fired
17.0.0 26 Nov 2026 1 rule fired
15.1.0 24 Nov 2026 Not shown
15.0.2 23 Nov 2026 Not shown

Rules fired in 17.1.0: 1

Findings

1 Low

Findings for v17.1.0. 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.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

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

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

README

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

@aiquants/markdown

Advanced Markdown renderer for React with support for various extensions and custom components.

Features

  • Rich Markdown Support: Full support for CommonMark, GitHub Flavored Markdown (GFM), and LaTeX Math expressions.
  • Offloaded Parser: CPU-heavy Markdown parsing and AST transformation are offloaded to a high-performance Go API server running goldmark and ConnectRPC.
  • Browser Converter: the same Go converter, compiled to WebAssembly and run in a worker, converts in the browser as the service does, without a round trip (@aiquants/markdown/converter).
  • Custom Extensions & Plugins: GitHub alerts, Zenn-style directives (:::message / :::details), single-line display math, and pluggable subscript, superscript, mark highlights, table cell merges, and opt-in embeds: posts and videos of ten SNS and video providers as script-free cross-origin frames, and link cards from the host's metadata endpoint.
  • Dynamic Configuration: Easily enable or disable custom extensions dynamically using parse options.
  • Syntax Highlighting: Code blocks with Shiki syntax highlighting, every token at a 7:1 contrast ratio or better in the GitHub, Zenn and None styles, light and dark (see Code blocks).
  • Text That Grows and Untrusted Text: a text that grows renders block by block as the converter cuts it, keeping the reader's selection and a code block's place (see Text that grows), and a model's answer renders under its own allow list, its images and links handed to the host's components (see Untrusted text).
  • Reader's Display Options: one toolbar popover holds the document style, a reading width, colour pairs that keep every text at 7:1 or better in every built-in style, and the document fonts a host offers (see Reader's display options).
  • Slide Documents: a Marp document (marp: true) converts into slides with Marp's directives, notes, fragments and background images; the viewer reads it as scaled slides or as a document with the notes, prints it, and SlideStage presents it, in three themes that keep every text at 7:1 (see Slide documents).
  • TypeScript: Full TypeScript support with comprehensive type definitions.

Installation

pnpm add @aiquants/markdown @aiquants/spreadsheet @aiquants/virtualscroll

@aiquants/spreadsheet is a required peer (it draws ```spreadsheets blocks) and @aiquants/virtualscroll is its own peer. The grid is imported only when a document holds a table, so a document without one never loads it.

パーサーバイナリの配布

Markdown の解析は Go 製サービス (markdown-api) が担当します。このバイナリはプラットフォーム別のパッケージとして配布され、パッケージマネージャが実行環境に合うものだけを自動選択します (esbuild や Biome と同じ方式)。本体パッケージにバイナリは含まれません。

プラットフォーム 対応
Linux x64 / arm64 ✅
macOS x64 (Intel) / arm64 (Apple Silicon) ✅
Windows x64 / arm64 ❌ Node.js からサービスを起こしません (Windows のホストはサービスを自らの実行ファイルの中で動かします)。parseMarkdown はソケットを見ることも起こすこともせずに、理由を添えて unavailable で断り、リンクカードの口はサービスへ届かない時と同じに 500 を答えます

postinstall スクリプトは不要です (実行権限は npm の bin 契約で保証されます)。ライフサイクルスクリプトを禁止している環境でもそのまま動きます。

parseMarkdown と createLinkCardHandler の処理は、最初の呼び出し時にサービスが待ち受けていなければ自動起動します。起こすのはソケットで何も聞いていないと分かる時だけで、聞き手の列が満ちている時やこのプロセスの記述子が尽きた時は、動く子に触れずに呼び出しを続けます。プロセスマネージャ (supervisor / systemd など) で markdown-api を別プロセスとして管理している構成では、そのソケットへそのまま接続します。

サービスを自分でビルドし、その場所を教えてください (Windows を除く)。

git clone https://github.com/fehde-k/aiquants.git
cd aiquants/packages/go/markdown-api
go build -o dist/markdown-api .
export MARKDOWN_API_BINARY=/path/to/markdown-api
環境変数
変数 既定値 用途
MARKDOWN_SOCKET_PATH (必須) サービスと通信する UNIX ドメインソケットのパス (サービスも同じ変数を読む)。未設定か空なら parseMarkdown と nodeMarkdownServiceClient は変数を名指して失敗し、createLinkCardHandler の処理は 500 で答え、サービスは起動しない (パスを推し量らない)。プロセスの間は変えない (輸送は接続を開く時に読み、開いた接続を使い続ける)。ソケットのディレクトリは持ち主だけが書けること (ソケットの上では何も認証しないので、ほかの利用者が先に道を取ると、呼び出しのトークンと文書を受け取り、答えを返せる)
MARKDOWN_SOCKET_MODE 0600 サービスのソケットの権限。0600 (所有者のみ) か 0660 (所有者とグループ) だけで、ほかの値ではサービスが値を名指して起動しない (ソケットの上では何も認証しないため、ほかの利用者へは開かない)
MARKDOWN_API_BINARY (なし) 自前ビルドしたバイナリの明示指定
MARKDOWN_API_STARTUP_TIMEOUT_MS 10000 自動起動したサービスが待ち受け開始するまでの猶予 (ミリ秒。子が先に終われば待たない)。未設定か空なら既定値で、正の整数のほかの値は子を起こす時に RangeError で変数を名指す
MARKDOWN_MAX_SOURCE_BYTES 8388608 (8 MiB) サービスが受け付ける Markdown の本文の最大 (@import で取り込んだ分を含む)
MARKDOWN_MAX_HTML_BYTES 33554432 (32 MiB) サービスが作る HTML の最大 (呼び出しの maxHtmlBytes はこれを下げることだけができる)。応答の塊の位置 (blockOffsets) が uint32 に収まるよう 4294967295 以下で、超える値ではサービスが起動しない
MARKDOWN_CONVERT_TIMEOUT 30s 変換 1 回の最長の時間 (Go の時間の書式。呼び出しの timeoutMs はこれを短くすることだけができる)
MARKDOWN_CONVERSION_CAPACITY 1 MARKDOWN_SMALL_CONVERSION_MAX_BYTES を超える文書の枠で同時に走る変換の重み (@import を含む本文の大きさ + 64 KiB) の合計の上限を、最大の文書の本数で表す正の整数 (既定では 500 KB の文書が 14 本)。超えた変換は来た順に待ち、待ちも変換の時間に入るので、1 本が期限まで走れば同じ枠の後ろは最長で期限まで待つ。最大の文書 1 本のメモリは文書の形で 0.24〜3.83 GiB で、2 本なら最悪 7.7 GiB
MARKDOWN_SMALL_CONVERSION_MAX_BYTES 262144 (256 KiB) 小さな文書の枠の本文の最大 (@import を含む。本文の上限より小さい正の整数)。枠の間で溢れないので、大きな文書がどれだけ長く走っても小さな文書は待たない
MARKDOWN_SMALL_CONVERSION_CAPACITY 8 小さな文書の枠で同時に走る変換の重みの合計の上限を、その枠の最大の文書の本数で表す正の整数 (既定ではごく小さな文書が 40 本)
MARKDOWN_CONVERSION_MEMORY_BYTES 6442450944 (6 GiB) プロセスのヒープのバイト数がこれを超えると、最も長く走っている変換から unavailable で止め (上限の 4/3 で全て止まる)、超えている間は新しい変換を始めずに unavailable で断る。プロセス全体を数える

後の 4 つはサービス (markdown-api) が読む。自動起動したサービスは呼び出し元のプロセスの環境を受け継ぐ。正の数 (時間は正の時間) 以外の値ではサービスが起動しない。

parseMarkdown・nodeMarkdownServiceClient・リンクのカードは @aiquants/local-service-transport の輸送でサービスへ届く。呼び出しは HTTP/2 の接続 1 本を分け合い、止めた呼び出しの後は次の呼び出しから新しい接続へ移る。

自動起動したサービスは起こしたホストの子で、ホストと一緒に終わる。ソケットを複数のホストで分けると、先に終わるホストの子の上の呼び出しは失敗し、次の呼び出しが子を起こす (サービスは起動のときに道のソケットを生死を問わず消すため、後に起きた子が道を取る)。ソケットを分けるホストでは、サービスをプロセスマネージャで起こす。

Usage

Basic Usage

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 @aiquants/markdown

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

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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

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

Frame 2085668439 (1)
Group 1261154229