Intel

AIKIDO-2026-884281

statamic/cms is vulnerable to Unsafe Reflection

Unsafe ReflectionGHSA-33fx-2776-vvp5 Published 3 days ago

81

High Risk

This Affects:

PHPstatamic/cms
0.0.1 - 5.74.3
Fixed in 5.74.4
6.0.0 - 6.27.1
Fixed in 6.27.2
Are you affected? Scan for Free

TL;DR

Statamic resolves variable paths in Antlers templates without fully restricting which object methods can be invoked. When user input is added into an affected template area, it can trigger method calls on objects exposed to the template. This could expose sensitive account data, let an unauthenticated visitor take over an account, or allow content to be modified or destroyed. The fix tightens Antlers variable path resolution and the get modifier and consistently applies the setting that corrects this behavior.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your site has Antlers templates that incorporate user input into affected template areas.

Background info

statamic/cms is vulnerable to Unsafe Reflection in versions 0.0.1 - 5.74.3 and 6.0.0 - 6.27.1.

How to fix this

Upgrade the statamic/cms library to the patch version.