# CVE-2026-63490: Handlebars.java: Arbitrary file read in `SpringTemplateLoader` via URL-fragment suffix bypass

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-20T14:45:35.727Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-g29j-rwfv-h99w
- Weaknesses: CWE-22, CWE-23, CWE-552
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Handlebars.java provides logic-less and semantic Mustache templates with Java. Prior to 4.5.3, com.github.jknack.handlebars.springmvc.SpringTemplateLoader resolves attacker-influenced Spring MVC view names through Spring ResourceLoader without the path-containment validation used by other URL-based loaders. In handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/SpringTemplateLoader.java, a view name using a file: or classpath: URL and ending with the # fragment delimiter places the appended .hbs suffix in the fragment, which FileUrlResource.exists() and URL.openStream() discard. HandlebarsViewResolver in handlebars-springmvc/src/main/java/com/github/jknack/handlebars/springmvc/HandlebarsViewResolver.java then passes the attacker-controlled name to handlebars.compile(), allowing an unauthenticated remote attacker to read files accessible to the JVM when an application exposes a controller with a user-influenced view name. This issue is fixed in version 4.5.3.

(As written by CVE List.)

## Affected

- jknack handlebars.java: < 4.5.3
- com.github.jknack:handlebars-springmvc (Maven): before 4.5.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/jknack/handlebars.java/security/advisories/GHSA-g29j-rwfv-h99w> (exploit, web)
- <https://github.com/jknack/handlebars.java/commit/61f43423a337b87db5fec1fe59f0725aaaa38df5> (web)
- <https://github.com/jknack/handlebars.java/releases/tag/v4.5.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63490> (advisory)
- <https://github.com/jknack/handlebars.java> (package)

## Sources

- CVE List: [CVE-2026-63490](https://www.cve.org/CVERecord?id=CVE-2026-63490), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-g29j-rwfv-h99w](https://github.com/advisories/GHSA-g29j-rwfv-h99w), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-63490](https://nvd.nist.gov/vuln/detail/CVE-2026-63490), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2026-63490 · Whole record: https://cve.day/CVE-2026-63490.json · Rebuilt by cve.day 2026-11-25T22:59:34.640Z
