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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| QingYunA | answer-me-with-html | ≤ 0.5.0 | — |
References
- https://hackmd.io/@haind/answer-me-with-html-code-src-symlink-escape third-party-advisory
- https://github.com/QingYunA/answer-me-with-html/blob/b275eba8d4cc49bcb4bbc28459863f4b49a480f9/src/code.js#L74-L105 technical-description
- https://github.com/QingYunA/answer-me-with-html product
- VulnCheck Advisory: answer-me-with-html through 0.5.0 Symlink Following in Code Block src Embedding third-party-advisory