CVE-2022-21648
MEDIUM 6.1CVSS 3.1Sandbox bypass in Latte templates
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.
- Published
- 4 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-36m2-8rhx-f36j
- Sources
- NVDJSONOSV GHSA-36m2-8rhx-f36jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nette | lattecpe:2.3:a:nette:latte:*:*:*:*:*:*:*:* |
>= 2.8.0, < 2.8.8 | 2.8.8 |
| NVD | nette | lattecpe:2.3:a:nette:latte:*:*:*:*:*:*:*:* |
>= 2.9.0, < 2.9.6 | 2.9.6 |
| NVD | nette | lattecpe:2.3:a:nette:latte:*:*:*:*:*:*:*:* |
>= 2.10.0, < 2.10.8 | 2.10.8 |
| OSV | Packagist | latte/latte | >= 2.10.0, < 2.10.8 | 2.10.8 |
| OSV | Packagist | latte/latte | >= 2.9.0, < 2.9.6 | 2.9.6 |
| OSV | Packagist | latte/latte | >= 2.8.0, < 2.8.8 | 2.8.8 |
References
- https://github.com/nette/latte/commit/9e1b4f7d70f7a9c3fa6753ffa7d7e450a3d4abb0 · Patch, Third Party Advisory, WEB
- https://github.com/nette/latte/security/advisories/GHSA-36m2-8rhx-f36j · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21648 · ADVISORY
- https://github.com/nette/latte · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)