Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108723 Overview
CVE-2026-108723 affects the answer-me-with-html package through version 0.5.0. The vulnerability resides in the am command-line interface (CLI) code block src= embedding feature. The localPath() function validates path text without resolving symbolic links. Attackers can distribute a repository that contains a symlink pointing outside the checkout directory. When a victim runs am render, the tool embeds the symlink target into the generated HTML output. Sharing that HTML discloses the contents of readable external files. The flaw is classified as a link following issue under [CWE-59].
Critical Impact
Local attackers can exfiltrate readable files outside the project checkout by crafting a malicious repository that triggers symlink-based file disclosure during HTML rendering.
Affected Products
- answer-me-with-html versions through 0.5.0
- The am CLI render command
- Downstream workflows that publish am-generated HTML
Discovery Timeline
- 2026-10-11 - CVE-2026-108723 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108723
Vulnerability Analysis
The answer-me-with-html project renders Markdown-like content into HTML. Code blocks accept a src= attribute that embeds the contents of a referenced file. The localPath() function in src/code.js enforces that the referenced path appears to stay inside the repository checkout. The check operates on raw path strings only. It does not call a canonicalizing routine such as fs.realpath() to resolve symbolic links before the containment comparison.
An attacker who controls the repository can commit a symlink whose textual path looks local but whose target resolves outside the project. When am render processes the embed, Node.js follows the symlink during file read. The external file content is written into the output HTML. If the victim publishes or shares the resulting HTML, the targeted file is disclosed.
Root Cause
The root cause is a missing symlink resolution step in path validation. Containment checks that rely on lexical path comparison are bypassed when the filesystem performs link traversal at read time. This is a classic link following weakness tracked as [CWE-59].
Attack Vector
Exploitation requires local access on the victim's machine and user interaction. The victim must clone or extract an attacker-supplied repository and then execute am render against it. The CVSS 4.0 vector indicates local attack vector with required user interaction and no privileges needed. Impact is limited to confidentiality of files readable by the user running the CLI.
The vulnerability manifests in the localPath() logic between lines 74 and 105 of src/code.js. See the GitHub Source Code Snippet and the HackMD Analysis on Symlink Escaping for the full walkthrough.
Detection Methods for CVE-2026-108723
Indicators of Compromise
- Symbolic links inside cloned repositories whose targets resolve outside the checkout root.
- Generated HTML containing contents of sensitive files such as ~/.ssh/id_rsa, /etc/passwd, or local configuration files.
- am render executions sourced from untrusted or newly cloned repositories.
Detection Strategies
- Scan repositories with find . -type l -lname '*' and inspect targets before invoking the am CLI.
- Compare localPath() input strings against the real path returned by fs.realpath() during build pipelines.
- Review published HTML artifacts for unexpected embedded content that does not match in-repository source files.
Monitoring Recommendations
- Audit CI/CD jobs that run am render for file reads outside the workspace directory.
- Log process execution of the am CLI alongside the working directory and repository origin.
- Flag Git repositories that contain symlinks pointing to absolute paths or parent directories.
How to Mitigate CVE-2026-108723
Immediate Actions Required
- Avoid running am render against repositories from untrusted sources until a patched release is available.
- Remove symbolic links from repositories before processing, or clone with options that reject symlinks.
- Execute the am CLI inside a sandbox or container that only exposes the project directory.
Patch Information
No fixed version is listed in the published advisories. The vulnerability affects answer-me-with-html through 0.5.0. Monitor the VulnCheck Security Advisory and the GitHub PoC Repository for an upstream fix. A durable fix should resolve the real path with fs.realpath() and verify that the canonical target remains within the checkout root before reading.
Workarounds
- Pre-process repositories to strip or reject symbolic links prior to rendering.
- Run am render under an unprivileged user that cannot read sensitive files outside the project.
- Review generated HTML before publication to confirm embedded content originates from in-repository files.
- Use filesystem namespaces or chroot environments to prevent symlink escape beyond the checkout root.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

