Skip to content

Enforce path containment in FolderTheme.getTemplate() (26.6) - #50302

Merged
ahus1 merged 1 commit into
keycloak:release/26.6from
rmartinc:backport-50098-26.6
Jun 29, 2026
Merged

ahus1 merged 1 commit into
keycloak:release/26.6from
rmartinc:backport-50098-26.6

Conversation

@rmartinc

Copy link
Copy Markdown
Contributor

Route template resolution through ResourceLoader.getFile() so getTemplate()
applies the same normalization and root-path guard as getResourceAsStream().

Closes #49961

PR: #50098
Commit: da3cc05
PR branch: backport-50098-26.6
Target branch: https://github.com/keycloak/keycloak/tree/release/26.6

Route template resolution through ResourceLoader.getFile() so getTemplate()
applies the same normalization and root-path guard as getResourceAsStream().

Closes keycloak#49961

Signed-off-by: MdTanwer <tanw9004167@gmail.com>
(cherry picked from commit da3cc05)
@ahus1
ahus1 merged commit 3d5d2ed into keycloak:release/26.6 Jun 29, 2026
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Themes: FolderTheme.getTemplate() missing path-containment check

6 participants