Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker gains admin/dev blueprint access
-
DeliveryEnable dynamic Antlers rendering on a field
-
ExploitInject two_factor_recovery_codes template variable
-
ExecutionLure or wait for victim to load rendered page
-
PersistCapture recovery codes from HTML response
-
ImpactBypass victim's 2FA at login
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two specific preconditions to be simultaneously true. First, dynamic Antlers rendering (also referred to as raw/Antlers-mode template rendering) must be enabled on at least one blueprint field that is involved in rendering the target user's context - this is a non-default, admin-configured setting at the blueprint level, not a content-editing permission. Second, the victim user must load a page that renders through that field configuration (UI:R per the CVSS vector). What limits exploitation: the PR:H CVSS metric confirms that an administrator or developer must actively misconfigure or maliciously configure the blueprint; standard content editors cannot enable dynamic rendering. The vulnerability exposes only the viewing user's own recovery codes (current_user scope), not arbitrary other users' codes - so mass harvesting requires tricking many users individually. The attack does not work against default Statamic installations where dynamic Antlers rendering is not configured on any field. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N, score 6.2) is internally consistent with the description. PR:H correctly reflects that exploitation requires an administrator or developer to first configure a blueprint field with dynamic Antlers rendering enabled - this is not a default state. UI:R reflects that a victim user must actually load the affected page for their codes to be rendered. The Scope change (S:C) acknowledges that exposure of recovery codes affects the victim's account security posture beyond the vulnerable component itself. EPSS data was not provided; KEV status is not listed; no POC is publicly known at time of analysis, all of which lower the urgency relative to the CVSS headline. The real-world risk is moderate-to-low for most deployments: the precondition of admin-level blueprint configuration is a significant limiting factor, and the attack requires a socially-engineered or observable page visit by the victim. However, in multi-tenant or shared Statamic deployments where blueprint configuration is delegated to lower-trust administrators, the risk escalates meaningfully. The absence of a vendor advisory or confirmed patch version is a gap that defenders should treat as elevated until resolved. |
| Exploit ScenarioDerived | An attacker with Statamic administrator or developer privileges navigates to the blueprint configuration panel and enables dynamic Antlers rendering on a field within a content type visible to regular users. The attacker then edits a template to include |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Statamic CMS exposes authenticated users' raw two-factor authentication recovery codes through the Antlers templating engine due to a missing access restriction in the AugmentedUser::get() resolver. Unlike password and password_hash fields, which are explicitly excluded from augmentation, two_factor_recovery_codes is returned without restriction and is absent from all Antlers variable guard lists. An administrator or developer who has configured a blueprint field with dynamic Antlers rendering enabled can craft a template ({{ current_user.two_factor_recovery_codes }}) that, when rendered by a victim visiting the page, leaks that victim's 2FA recovery codes into the HTML response - enabling 2FA bypass. No public exploit has been identified at time of analysis, and exploitation requires a high-privilege prerequisite (blueprint configuration access).
RemediationAI
No vendor-released patch or advisory has been identified at the time of this analysis; the only references provided point to the upstream GitHub repository without a tagged fix release or changelog entry. As a primary compensating control, administrators should audit all blueprint configurations and disable dynamic/raw Antlers rendering on any field where user-supplied or user-contextual data is rendered - this directly removes the exploitation prerequisite. As a secondary control, review and extend Statamic's guardedVariablePatterns and guardedContentVariablePatterns in ViewServiceProvider.php to explicitly include two_factor_recovery_codes, preventing template resolution of this handle even if dynamic rendering is enabled; note this requires direct code modification and must be re-applied after CMS updates. Access to blueprint configuration (the high-privilege prerequisite) should be restricted to the minimum necessary administrators. Monitor the upstream repository at https://github.com/statamic/cms for a patch release and apply it promptly once available.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Statamic CMS (CPE: cpe:2.3:a:statamic:cms:*:*:*:*:*:*:*:*) is a Laravel/PHP-based flat-file CMS with a template engine called Antlers. The vulnerability root cause is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), arising from an asymmetric treatment of sensitive fields in the AugmentedUser class (src/Auth/AugmentedUser.php). Statamic explicitly excludes password and password_hash from user augmentation entirely, but includes an affirmative, unguarded case for two_factor_recovery_codes that returns raw codes via $this->data->get('two_factor_recovery_codes'). The Antlers template guard system in ViewServiceProvider.php uses guardedVariablePatterns and guardedContentVariablePatterns to block sensitive variables from template access, but two_factor_recovery_codes is not listed - only config.app.key is guarded by default. When a blueprint field is configured to allow dynamic/raw Antlers rendering (a per-field, admin-controlled option), the {{ current_user.two_factor_recovery_codes }} variable resolves and outputs codes directly into rendered HTML.
Know when Statamic gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:N/A:N
PR:H confirmed by blueprint-configuration requirement; UI:R by victim page-load dependency; S:C because recovery codes enable account takeover beyond the CMS itself.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
Statamic CMS's user-augmentation resolver, AugmentedUser::get() in src/Auth/AugmentedUser.php, contains an explicit case for the two_factor_recovery_codes handle that returns the user's raw two-factor recovery codes with no access restriction: if ($handle === 'two_factor_recovery_codes') { return new Value($this->data->get('two_factor_recovery_codes'), ...); }. Unlike sensitive fields such as password/password_hash, which are excluded from AugmentedUser entirely, two_factor_recovery_codes is neither excluded from augmentation nor present in Statamic's Antlers variable guard lists (guardedVariablePatterns/guardedContentVariablePatterns in src/Providers/ViewServiceProvider.php, and the runtime GlobalRuntimeState guard paths), which by default only guard config.app.key. On any Antlers template field where raw/dynamic template rendering is enabled for a given field (an admin/developer-configured, blueprint-level field option), a template such as {{ current_user.two_factor_recovery_codes }}{{ value }}|{{ /current_user.two_factor_recovery_codes }} renders the viewing user's own 2FA recovery codes directly into the HTML response, allowing an attacker who can view or capture that response (e.g. via a shared/observable page, or a crafted link causing a victim to render it) to obtain the codes and bypass 2FA. Exploitation requires that dynamic Antlers rendering already be enabled on a field the target user's data flows through, which is a blueprint-configuration privilege rather than a standard content-editing permission.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Statmic is a core Laravel content management system Composer package. Rated critical severity (CVSS 9.8), this vulnerabi
Statamic is a flat-first, Laravel and Git powered content management system. Rated medium severity (CVSS 5.4), this vuln
Password reset poisoning in Statamic CMS before 6.3.3/5.73.10 allows attackers to steal password reset tokens by manipul
Statamic framework before 2.6.0 does not correctly check a session's permissions when the methods from a user's class ar
Authenticated Statamic CMS users (versions 6.0.0-6.3.x) can bypass privilege escalation verification checks to gain unau
Statamic is a flat-first, Laravel + Git powered CMS designed for building websites. Rated high severity (CVSS 8.8), this
Statamic 2.10.3 allows XSS via First Name or Last Name to the /users URI in an 'Add new user' request. Rated medium seve
Statmatic is a Laravel and Git powered content management system (CMS). [CVSS 8.7 HIGH]
Authenticated users with content creation permissions in Statamic CMS versions 6.0.0 through 6.2.2 can inject persistent
Mass deletion of content, assets, and user accounts in Statamic CMS versions prior to 5.73.20 and 6.13.0 occurs via quer
Versions 5.73.8 and below in addition to 6.0.0-alpha.1 versions up to 6.3.1 is affected by cross-site scripting (xss) (C
Stored cross-site scripting in Statamic CMS 5.22.0 and earlier lets an authenticated control-panel user who holds permis
EUVD-2026-53378
GHSA-jppw-r5j3-xf7x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB