Security mailing lists by PureSourceCode

CVE-2022-21648

MEDIUM 6.1CVSS 3.1

Sandbox 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nette latte
cpe:2.3:a:nette:latte:*:*:*:*:*:*:*:*
>= 2.8.0, < 2.8.8 2.8.8
NVD nette latte
cpe:2.3:a:nette:latte:*:*:*:*:*:*:*:*
>= 2.9.0, < 2.9.6 2.9.6
NVD nette latte
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.