Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
HIGH severity

CVE-2022-21648 — latte

HIGHFix: nette/latte@9e1b4f7

CVE-2022-21648 is a high-severity (CVSS 8.2) Cross-site Scripting (XSS) vulnerability in latte/latte. A fix is available for latte/latte — see the affected versions and patch details below.

Sandbox bypass in Latte templates

Also known asGHSA-36m2-8rhx-f36j
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Oct 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs56th percentile — riskier than 56% of all scored CVEsHighest risk
0.00%0.44%0.88%1.32%0.3%0.8%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-21648 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected
🐘latte/latte🐘latte/latte🐘latte/latte

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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 Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistlatte/latte≥ 2.10.0&&< 2.10.82.10.8composer require latte/latte:^2.10.8
🐘Packagistlatte/latte≥ 2.9.0&&< 2.9.62.9.6composer require latte/latte:^2.9.6
🐘Packagistlatte/latte≥ 2.8.0&&< 2.8.82.8.8composer require latte/latte:^2.8.8

Affected Products

1 product · 3 configurations
Application
lattenette
≥ 2.10.0 && < 2.10.8
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for latte/latte, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update latte/latte to 2.10.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-21648 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-21648 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2022-21648: latte XSS — Fixed in 2.10.8