Live threats

All CVEs / Nette

CVE-2022-21648Nette Latte

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Jan 4, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Latte.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist latte/latte ≥ 2.10.0 < 2.10.8 2.10.8 composer require "latte/latte:^2.10.8"
Packagist latte/latte ≥ 2.9.0 < 2.9.6 2.9.6 composer require "latte/latte:^2.9.6"
Packagist latte/latte ≥ 2.8.0 < 2.8.8 2.8.8 composer require "latte/latte:^2.8.8"

Per OSV / GitHub Advisories (GHSA-36m2-8rhx-f36j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nettelatte≥ 2.8.0 < 2.8.8
nettelatte≥ 2.9.0 < 2.9.6
nettelatte≥ 2.10.0 < 2.10.8

Official sources

References

Links published by the sources. Open them with care.