Description
answer-me-with-html through 0.5.0 contains a link following vulnerability in the am CLI code block src= embedding, where localPath() checks only path text without resolving symlinks. Attackers can ship a repository with a symlink pointing outside the checkout so am render embeds readable external files into generated HTML, disclosing them when shared.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
QingYunA answer-me-with-html
Default version status: unaffected
0 to ≤ 0.5.0affected
pkg:github/QingYunA/answer-me-with-htmlReferences
- https://hackmd.io/@haind/answer-me-with-html-code-src-symlink-escape ↗
- https://github.com/QingYunA/answer-me-with-html/blob/b275eba8d4cc49bcb4bbc28459863f4b49a480f9/src/code.js#L74-L105 ↗
- https://github.com/QingYunA/answer-me-with-html ↗
- https://www.vulncheck.com/advisories/answer-me-with-html-through-0.5.0-symlink-following-in-code-block-src-embedding ↗