mediumCVE-2026-46635

CVE-2026-46635 in Twig

Twig is a template language for PHP. Prior to 3.26.0, the column filter passes object arrays to PHP array_column(), which reads public and magic properties without reaching CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(), allowing an untrusted template author with column in allowedFilters to read properties that are not in the sandbox allowlist. This issue is fixed in version 3.26.0.

ProductTwig
CVSS5.3
EPSS0.00371
UpdatedJuly 16, 2026

Quick answer

Symfony Twig should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • Twig before 3.26.0

Fixed versions

  • 3.26.0

How to fix it

CVE-2026-46635 is a authorization bypass issue in Twig. Update from Twig before 3.26.0 to 3.26.0 or newer. Keep it simple: upgrade first, then test the normal user flow.

  1. Find every place where Twig is installed or used.
  2. Upgrade Twig to 3.26.0 or a newer fixed release from the vendor.
  3. If you cannot upgrade right away, limit access to the affected feature until the update is done.
  4. Restart or redeploy the service if the product needs it after the update.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm the installed version is 3.26.0 or newer.
  • Run a normal login, admin, and user flow to make sure the site still works.
  • Check logs for new errors after the update.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-46635?

Symfony Twig versions listed as affected should be reviewed: Twig before 3.26.0.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.