cvelo
P3 · MediumCVSS 5.3EPSS 0.5%

Sandbox property allow-list bypass via the `join` filter on non-iterable objects

  • CVE-2026-133768
  • EUVD-2026-133917

Description

The join filter converted a value that isn't iterable with (array) $value. For an object, that gives every property, including the private and protected ones. A sandboxed template allowed to use join could therefore print properties that the policy denies, and that templates can't read otherwise: {{ user|join(',') }} A value that isn't iterable is now joined as a single item. A Stringable object prints its checked string, and other objects throw, as with the first and last filters.

Text from the CVE.org record.

Recommendation

  • Twig twig/twig

    • If you run a version before 3.31.1update to 3.31.1 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Twig twig/twig

    Affected versionsFixed in
    before 3.31.13.31.1

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.