OSV 1.4.0 · github-reviewed · 修改于 2026-06-18 02:42
发布时间
2026-06-18 02:42
GitHub 审查时间
2026-06-18 02:42
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/06/GHSA-r4gv-qr8j-p3pg/GHSA-r4gv-qr8j-p3pg.json
Any application that passes user-controlled input to Handlebars.compile() using a FileTemplateLoader (or ClassPathTemplateLoader) is vulnerable to arbitrary file read. This is a realistic attack surface for web applications that use template names from URL path parameters, request parameters, or other user-controlled sources.
com.github.jknack:handlebars:4.5.2
Validate template name is derived from user input.
if (!file.getPath().startsWith(new File(prefix).getCanonicalPath())) {
throw new IOException("Path traversal attempt detected: " + location);
}