# CVE-2026-142195: Latte before 3.1.7 Sandbox Bypass via Double-Evaluated Dynamic Property Names

Source: https://aplosec.si/cve/CVE-2026-142195/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142195

Low 2.3 · Reported · Fixed in 3.1.7 · CWE-863 · Packagist

# Latte before 3.1.7 Sandbox Bypass via Double-Evaluated Dynamic Property Names

CVE-2026-142195 · published 2026-12-02

In plain words: this type of bug lets a user see or change things that belong to someone else (broken access control). A fixed release is listed.

## Summary

CVE-2026-142195 affects Latte (Packagist) < 3.1.7: Sandbox Bypass via Double-Evaluated Dynamic Property Names (CWE-863). Fixed in 3.1.7. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Latte before 3.1.7 contains a sandbox bypass vulnerability that allows template authors to read forbidden properties by abusing double-evaluated dynamic property names. Attackers can craft side-effecting name expressions in PropertyFetchNode or StaticPropertyFetchNode so the policy check sees an allowed property while access reads a forbidden one.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade Latte to 3.1.7 or later. Releases in the affected range (< 3.1.7) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-12-02 CVE published

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/latte-before-3.1.7-sandbox-bypass-via-double-evaluated-dynamic-property-names](https://www.vulncheck.com/advisories/latte-before-3.1.7-sandbox-bypass-via-double-evaluated-dynamic-property-names)

- [Vulnerable codehttps://github.com/nette/latte/blob/v3.1.6/src/Latte/Sandbox/Nodes/PropertyFetchNode.php#L25-L32](https://github.com/nette/latte/blob/v3.1.6/src/Latte/Sandbox/Nodes/PropertyFetchNode.php#L25-L32)

- [Vulnerable codehttps://github.com/nette/latte/blob/v3.1.6/src/Latte/Compiler/PrintContext.php#L244-L260](https://github.com/nette/latte/blob/v3.1.6/src/Latte/Compiler/PrintContext.php#L244-L260)

- [Fix commithttps://github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c](https://github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c)

- [Releasehttps://github.com/nette/latte/releases/tag/v3.1.7](https://github.com/nette/latte/releases/tag/v3.1.7)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142195](https://www.cve.org/CVERecord?id=CVE-2026-142195)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-142195](https://nvd.nist.gov/vuln/detail/CVE-2026-142195)

**Severity:** Low 2.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142195)

**Package:** Latte

**Ecosystem:** Packagist

**Affected:** < 3.1.7

**Fixed:** 3.1.7

**Weakness:** CWE-863

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
