{"answers":{"affected":"2 open source packages ship an affected version, including com.github.jknack:handlebars-springmvc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63490 exists.","fix":"Upgrade com.github.jknack:handlebars-springmvc to 4.5.3 or later.","what":"CVE-2026-63490 is a high-severity path traversal vulnerability in jknack handlebars.java, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-63490 and fix it if it is affected.\n\nWhat it is: CVE-2026-63490 is a high-severity path traversal vulnerability in jknack handlebars.java, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63490 exists.\n\nAffected packages and fixed versions:\n- com.github.jknack:handlebars-springmvc (Maven): affected all versions; fixed in 4.5.3\n- com.github.jknack:handlebars-springmvc (Maven): affected all versions; fixed in 4.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-63490/ (Markdown: https://insights.sbomify.com/CVE-2026-63490/index.md)","id":"CVE-2026-63490","markdown":"https://insights.sbomify.com/CVE-2026-63490/index.md","name":"CVE-2026-63490","record":{"aliases":["GHSA-g29j-rwfv-h99w"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java template library","requires_auth":"none","summary":"An unauthenticated remote attacker can read arbitrary files accessible to the JVM by exploiting a path traversal vulnerability in the SpringTemplateLoader of Handlebars.java.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"},{"id":"CWE-23","name":"Relative Path Traversal"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Handlebars.java: Arbitrary file read in `SpringTemplateLoader` via URL-fragment suffix bypass","id":"CVE-2026-63490","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Snipe-IT: 2FA bypass via the API token flow","id":"CVE-2026-63493"},"packages":[{"ecosystem":"Maven","fixed":["4.5.3"],"introduced":["0"],"last_affected":[],"package":"com.github.jknack:handlebars-springmvc","purl":null,"source":"GHSA-g29j-rwfv-h99w"},{"ecosystem":"Maven","fixed":["4.5.3"],"introduced":["0"],"last_affected":[],"package":"com.github.jknack:handlebars-springmvc","purl":"pkg:maven/com.github.jknack/handlebars-springmvc","source":"GHSA-g29j-rwfv-h99w"}],"prev":{"headline":"Hurl: Cookies in Cookies section leak when redirecting to a different host","id":"CVE-2026-63481"},"products":["handlebars.java"],"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-25","vendors":["jknack"]},"summary":"An unauthenticated remote attacker can read arbitrary files accessible to the JVM by exploiting a path traversal vulnerability in the SpringTemplateLoader of Handlebars.java.","url":"https://insights.sbomify.com/CVE-2026-63490/"}