CVE-2026-142195: Latte before 3.1.7 Sandbox Bypass via Double-Evaluated Dynamic Property Names
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments using composer/latte/latte versions before 3.1.7 are affected when untrusted or insufficiently trusted template authors can supply templates evaluated under the Latte sandbox.
What does an attacker need to exploit it?
The attacker needs the ability to author a template and craft a dynamic property-name expression with side effects. The exploit relies on the property name being evaluated differently for the sandbox policy check and the subsequent property access.
What is the impact of successful exploitation?
A successful bypass allows the template author to read properties that the sandbox policy is intended to forbid. The provided impact information indicates confidentiality impact only, with no integrity or availability impact.
How can exposure be reduced if an update cannot be applied immediately?
Do not allow untrusted template authors to submit or modify Latte templates in sandboxed environments. Restrict template-authoring access to trusted users until the affected Latte version can be replaced.