CVE-2026-133769: Sandbox property allow-list bypass via `html_cva()` variant values

Published Nov 24, 2026
·
Updated

Cva::apply() converted the values of variants, default variants and compound variants with (array). These values come from the arguments of htmlcva(). A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:

{{ htmlcva('base', {c: {p: user}}).apply({c: 'p'}) }}

Variant maps that are ArrayAccess objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.

Applications are affected when the sandbox allows the htmlcva function and the apply method of Twig\Extra\Html\Cva.

A value that isn't an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they're arrays.

Affected Software

1 affected component
composer/twig/html-extra

Event History

Nov 24, 2026
CVE Published
via MITRE·01:07 PM
Data Sourced
via MITRE·01:07 PM
DescriptionWeakness
Data Sourced
via OSV·01:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are affected when a sandboxed Twig template is permitted to call both the html_cva function and the apply method of Twig\Extra\Html\Cva. The issue applies to composer/twig/html-extra in that configuration.

2

What access does an attacker need to exploit it?

An attacker needs the ability to supply or control a sandboxed template that can invoke html_cva() and Cva::apply(). They can use objects available in the template context as variant values or ArrayAccess-based variant maps.

3

What could exploitation expose?

A malicious sandboxed template could print private and protected properties of an object from its context. It could also select keys on ArrayAccess variant maps and print offsets returned by those objects.

4

What can be done if updating is not immediately possible?

Do not allow sandboxed templates to use the html_cva function or the apply method of Twig\Extra\Html\Cva. Restricting either capability prevents the affected configuration described for this issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203