CVE-2025-9556: Gonja Default Env Ssti Arbitrary File Read

Template is rendered with gonja's default environment via gonja.FromString / gonja.FromBytes / gonja.FromFile. The default environment ships with an unrestricted filesystem loader, so Jinja2 composition directives in the template body (e.g. {% include "/etc/passwd" %}, {% extends %}, {% import %}, {% from %}) are resolved against the host filesystem. If any

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2025-9556-gonja-default-env-ssti-arbitrary-file-read --engine opengrep

Description

Template is rendered with gonja's default environment via gonja.FromString / gonja.FromBytes / gonja.FromFile. The default environment ships with an unrestricted filesystem loader, so Jinja2 composition directives in the template body (e.g. {% include "/etc/passwd" %}, {% extends %}, {% import %}, {% from %}) are resolved against the host filesystem. If any