PT-2026-50605 · Maven+3 · Com.Github.Jknack:Handlebars+2
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
handlebars versions prior to 4.5.2
Description
Applications that pass user-controlled input to the
Handlebars.compile() function using a FileTemplateLoader or ClassPathTemplateLoader are susceptible to arbitrary file read. This occurs when web applications utilize template names sourced from URL path parameters, request parameters, or other user-controlled inputs, allowing for path traversal.Recommendations
Update to version 4.5.2.
Validate that the template name is not derived from user input or implement a check to ensure the file path starts with the expected canonical path to prevent path traversal.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Com.Github.Jknack:Handlebars
Handlebars.Java
Io.Root.Com.Github.Jknack:Handlebars