{"id":"CVE-2022-21648","published":"2022-01-04T20:10:11Z","modified":"2025-04-23T19:14:54Z","title":"Sandbox bypass in Latte templates","vendor":"nette","product":"latte","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00844,"percentile":0.58873,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/nette/latte/security/advisories/GHSA-36m2-8rhx-f36j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nette/latte/commit/9e1b4f7d70f7a9c3fa6753ffa7d7e450a3d4abb0","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":11.77},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"nette","affectedVersions":[{"vendor":"nette","product":"latte","versions":[">= 2.10.0, < 2.10.8",">= 2.9.0, < 2.9.6",">= 2.8.0, < 2.8.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:12:40.449846Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"latte/latte","vulnerableRanges":[">=2.10.0, <2.10.8",">=2.9.0, <2.9.6",">=2.8.0, <2.8.8"],"patched":["2.10.8","2.9.6","2.8.8"],"from":["GHSA-36m2-8rhx-f36j"],"provenance":"source"}],"summary":{"text":"A sandbox escape in the Latte template engine for PHP, a Nette product, lets template content break out of the template sandbox and inject script into the web pages it generates. An attacker needs network access and the ability to supply template input, and exploitation requires a user to interact with the crafted page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:23Z"},"euvd":{"id":"EUVD-2022-0431","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-23803","published":"2021-12-17","fixed":"2.10.6","kev":false,"link":{"from":"CVE-2021-23803","to":"CVE-2022-21648","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:latte/latte","fromFixed":"2.10.6","toFixed":"2.10.8","daysApart":18},{"kind":"similar","provenance":"machine","score":0.47,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-21648","published":"2022-01-04","fixed":"2.10.8","kev":false}],"package":"Packagist:latte/latte"}}