CVE-2022-21648: Latte - Stored XSS
- Cve: CVE-2022-21648
- Name: Latte - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in users' browsers, leading to cross-site scripting (XSS) attacks.
- Remediation: Upgrade to version 2.8.8, 2.9.6, or 2.10.8. Alternatively, do not accept template input from untrusted sources.
- Vulnerability type: template_injection
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to provide untrusted template input
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00844
- Epss percentile: 0.58911
- Assignee: [email protected]
- Published at: 2022-01-04T20:15:08Z
- Age in days: 1785
- Modified at: 2026-06-17T04:26:40Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21648
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/nette/latte/commit/9e1b4f7d70f7a9c3fa6753ffa7d7e450a3d4abb0 | nvd | Patch, Third Party Advisory |
| https://github.com/nette/latte/security/advisories/GHSA-36m2-8rhx-f36j | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nette:latte | >= 2.10.0, < 2.10.8; >= 2.9.0, < 2.9.6; >= 2.8.0, < 2.8.8 | no | nvd | /v1/products/nette/latte |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nette/latte | commit, fix, package, security_advisory | yes | /v1/repositories/nette/latte |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts