baoyu-markdown-to-html
Warn
Audited by Gen Agent Trust Hub on Mar 25, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill dynamically downloads and executes JavaScript code from a remote source at runtime.
- In
scripts/md/utils/languages.ts, theloadAndRegisterLanguagefunction constructs a URL tohttps://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/highlightjs/and uses dynamicimport()to load and execute language highlighting modules. - [EXTERNAL_DOWNLOADS]: The skill fetches files from remote servers based on user-provided input.
- In
scripts/main.ts, thedownloadFilefunction uses thehttpsandhttpmodules to download remote resources. - This function is called by
resolveImagePathto download any image URL (starting withhttp://orhttps://) found within the input Markdown file into a local temporary directory. - [COMMAND_EXECUTION]: The skill executes local commands using sub-processes.
- In
scripts/main.ts, theconvertMarkdownfunction usesspawnSync('npx', args, ...)to execute therender.tsscript usingbun. - While the script path is determined using
__dirname, it processes user-provided file paths and configuration options. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it processes untrusted Markdown content without HTML sanitization.
- Ingestion points: Reads arbitrary Markdown content from a file path provided as an argument (
markdownPathinscripts/main.ts). - Boundary markers: No boundary markers or 'ignore' instructions are used when processing the Markdown body.
- Capability inventory: The skill has file system read/write access and network download capabilities (
downloadFile). - Sanitization: The rendering logic in
scripts/md/render.tsuses themarkedlibrary to parse Markdown into HTML but does not implement a sanitization pass (like DOMPurify), allowing potentially malicious HTML/JS embedded in the Markdown to persist in the output file.
Audit Metadata