CVE-2025-71281 XenForo Template Method Call Restriction Bypass

High 8.7 Published Updated

Attackers can bypass template method restrictions to invoke unauthorized methods, potentially leading to code execution in XenForo installations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-71281?

CVE-2025-71281 is a high-severity code injection vulnerability in XenForo, published on 1 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

XenForo before 2.3.7 does not properly restrict methods callable from within templates. A loose prefix match was used instead of a stricter first-word match for methods accessible through callbacks and variable method calls in templates, potentially allowing unauthorized method invocations.

Weakness: CWE-94

Which versions are affected by CVE-2025-71281?

It affects 1 product.

Products include Xenforo Xenforo.

How do I fix CVE-2025-71281?

No fix has been published for CVE-2025-71281 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-71281 being exploited?

There is no known exploitation of CVE-2025-71281 in the wild and no public exploit code.

Sources

Also known as GHSA-gvjw-m4hx-6454.

Is CVE-2025-71281 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free