baoyu-markdown-to-html

Fail

Audited by Gen Agent Trust Hub on Nov 30, 2026

Risk Level: HIGHREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: In scripts/vendor/baoyu-md/src/utils/languages.ts, the function loadAndRegisterLanguage dynamically imports and executes JavaScript files from a remote CDN (cdn-doocs.oss-cn-shenzhen.aliyuncs.com). The path is constructed using input from the Markdown file (the code block language), which allows for the execution of arbitrary remote code if the language parameter is manipulated or the CDN is compromised.- [DYNAMIC_EXECUTION]: The skill contains logic for runtime code loading via dynamic import() statements in scripts/vendor/baoyu-md/src/utils/languages.ts and scripts/vendor/baoyu-md/src/extensions/infographic.ts.- [EXTERNAL_DOWNLOADS]:
  • The skill downloads remote images specified in Markdown documents using http and https in scripts/vendor/baoyu-md/src/images.ts.
  • It fetches SVG diagrams from the PlantUML server (www.plantuml.com) in scripts/vendor/baoyu-md/src/extensions/plantuml.ts.- [COMMAND_EXECUTION]: The skill executes local TypeScript code using bun or npx and performs file system operations to read Markdown files and write HTML output.- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted Markdown data, including frontmatter and content, which could be used to deliver malicious instructions to the agent. It lacks robust boundary markers or sanitization to prevent the agent from misinterpreting embedded data as instructions.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 30, 2026, 03:47 PM