CVE-2025-71281 XenForo Template Method Call Restriction Bypass
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.
Other vulnerabilities in XenForo
- CVE-2025-71279 XenForo Passkey Security Bypass
- CVE-2026-73309 XenForo < 2.3.13 Authentication Bypass via OAuth2 Token Endpoint
- CVE-2026-73311 XenForo < 2.3.13 OAuth2 Authorization Code Reuse
- CVE-2026-73312 XenForo < 2.3.13 Refresh Token Replay via Expired Access Token
- CVE-2024-38457 Xenforo before 2.2.16 allows CSRF.
Sources
Also known as GHSA-gvjw-m4hx-6454.