Skip to content
OpenAdvisories
High · 8.2 CVE-2022-21648 EUVD-2022-0431GHSA-36m2-8rhx-f36j

Sandbox bypass in Latte templates

Published Jan 4, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

Latte is an open source template engine for PHP. Versions since 2.8.0 Latte has included a template sandbox and in affected versions it has been found that a sandbox escape exists allowing for injection into web pages generated from Latte. This may lead to XSS attacks. The issue is fixed in the versions 2.8.8, 2.9.6 and 2.10.8. Users unable to upgrade should not accept template input from untrusted sources.

Affected products

VendorProductAffectedFixed
nette latte >= 2.10.0, < 2.10.8, >= 2.9.0, < 2.9.6, >= 2.8.0, < 2.8.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php-nette No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS php-nette No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist latte/latte >= 2.10.0, < 2.10.8 2.10.8 GHSA-36m2-8rhx-f36j
Packagist latte/latte >= 2.9.0, < 2.9.6 2.9.6 GHSA-36m2-8rhx-f36j
Packagist latte/latte >= 2.8.0, < 2.8.8 2.8.8 GHSA-36m2-8rhx-f36j

References