NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
HIGH severity

Sandbox bypass in Latte templatesGHSA-36m2-8rhx-f36j

HIGHFix: nette/latte@9e1b4f7

GHSA-36m2-8rhx-f36j 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.

Also known asCVE-2022-21648
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Nov 24, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-36m2-8rhx-f36j.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs59th percentile — riskier than 59% of all scored CVEsHighest risk
0.00%0.45%0.90%1.34%0.3%0.8%May 26Sep 26Nov 26

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

How urgent is this, really

Where this sits among everything scored

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 GHSA-36m2-8rhx-f36j 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

### Impact The problem affects users who use the sandbox in Latte and templates from untrusted sources. ### Patches Sandbox first appeared in Latte 2.8.0. The issue is fixed in the versions 2.8.8, 2.9.6 and 2.10.8. ### References The issues were discovered by - JinYiTong (https://github.com/JinYiTong) - 赵钰迪 <[email protected]>
O3 Security · Impact-Aware SCA

Is GHSA-36m2-8rhx-f36j in your dependencies?

Find it across Packagist, including transitive dependencies.

Sandbox bypass in Latte templates (High 8.2)