Skip to content

Released version 3.0.28 (end of support)

Choose a tag to compare

@dg dg released this 23 Nov 02:17
· 239 commits to master since this release
  • Sandbox: the callable on the right side of the pipe operator |> goes through the policy, so on PHP 8.5+ a sandboxed template can no longer call any function or method (GHSA-9hh3-mgwh-gpj4, reported by NitroHex Security)
  • Sandbox: superglobals such as $_SERVER, $_ENV, $_COOKIE or $_SESSION are forbidden, so a sandboxed template can no longer read secrets or write session data; a template using them now reports a security violation (GHSA-7395-733q-q47j, reported by NitroHex Security)
  • Sandbox: a template compiled under a more permissive SecurityPolicy is no longer reused from the cache under a stricter one
  • Templates compiled by an older Latte are recompiled after an upgrade also with autoRefresh off, so fixes of the compiler, such as those above, take effect without clearing the cache