CVE-2026-142195
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://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/Sandbox/Nodes/PropertyFetchNode.php#L25-L32
- https://github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c
- https://github.com/nette/latte/releases/tag/v3.1.7
- https://www.vulncheck.com/advisories/latte-before-3.1.7-sandbox-bypass-via-double-evaluated-dynamic-property-names
CWEs
CWE-863
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.