Aug 21, 2026·6 min read·38 visits
Low-privileged users with 'add' permissions on a snippet model can bypass read restrictions by copying arbitrary snippet IDs, exposing sensitive content.
An authorization bypass vulnerability in Wagtail CMS allows authenticated users with snippet creation privileges ('add') to access and view the contents of restricted snippet instances for which they lack viewing or editing permissions. By invoking the copy endpoint, the application pre-populates form data with the properties of the source snippet, exposing sensitive information to unauthorized users.
Wagtail is an open-source Content Management System built on the Django web framework. It provides a highly customizable content structure through snippets, which are reusable models registered within the Wagtail admin interface. The system uses a granular role-based access control framework mapped to standard Django permissions to restrict operations on these snippets.
The vulnerability exists within the logic governing the snippet duplication action. The copying mechanism is designed to let administrative users copy an existing snippet instance into a new draft. However, the system failed to enforce sufficient read authorization controls on the source model instance during this sequence.
An attacker holding the 'add' permission on a given snippet class can access the copy endpoint for any existing database ID. Because the application processes this copy operation by rendering the creation form with the source snippet's data, the attacker receives the contents of private snippets in the rendered HTML output. This exposure bypasses 'view' or 'change' model restrictions, resulting in unauthorized information disclosure.
The root cause of this vulnerability lies in an incomplete authorization check within Wagtail's administrative views for snippets. To manage a snippet model, Django relies on four explicit permissions: 'add', 'change', 'view', and 'delete'. When a user triggers the copy view, the backend processes a request to create a new record derived from an existing record.
The vulnerable view evaluated only the user's authority to instantiate a new record. Consequently, the check validated that the user possessed the 'add' permission for the snippet class. It did not, however, perform an access check against the source object being cloned to verify if the requesting user was authorized to read it.
By omitting checks for the 'view' or 'change' permissions on the source object, the view implicitly assumed that anyone authorized to create a snippet was also authorized to read all existing snippets of that class. This logical flaw allows horizontal or vertical privilege escalation depending on how permissions are distributed across different user roles within the Wagtail administrative dashboard.
The vulnerability manifests in how the Wagtail snippet views populate the initial data dictionary for the copy form. In a vulnerable setup, the view accepts the model name and the primary key of the target instance. The backend queries the database for the source object and instantiates a model form using the returned instance.
Below is a representation of the vulnerable view logic compared with the patched view implementation.
# Vulnerable Logic
def copy_view(request, app_label, model_name, pk):
model = get_snippet_model(app_label, model_name)
# Only verifies permission to add new instances
if not user_has_perm(request.user, "add", model):
raise PermissionDenied
# Resolves the instance and pre-populates the form
# without verifying if user can read the source instance
instance = get_object_or_404(model, pk=pk)
form = SnippetForm(instance=instance)
return render(request, "copy.html", {"form": form})# Patched Logic
def copy_view(request, app_label, model_name, pk):
model = get_snippet_model(app_label, model_name)
if not user_has_perm(request.user, "add", model):
raise PermissionDenied
# Enforces that the user must hold either view or change
# permissions on the source model class before proceeding.
has_view = user_has_perm(request.user, "view", model)
has_change = user_has_perm(request.user, "change", model)
if not (has_view or has_change):
raise PermissionDenied
instance = get_object_or_404(model, pk=pk)
form = SnippetForm(instance=instance)
return render(request, "copy.html", {"form": form})The patched code introduces a logical disjunction requiring either 'view' or 'change' permission for the snippet model, alongside the 'add' permission. This prevents unauthorized reading while retaining the intended functionality for legitimate administrators.
Exploitation of this vulnerability does not require highly sophisticated attack methods. An attacker needs an active session in the Wagtail administration interface with a role that permits snippet creation for a targeted snippet class. The attacker then targets the endpoint responsible for handling snippet duplication requests.
Because Wagtail utilizes predictable, sequential integer identifiers for database rows by default, the attacker can systematically iterate through numerical values in the URL structure. A standard request constructed by an attacker would resemble the following GET request to the administration control panel.
GET /admin/snippets/app_label/target_model/copy/1024/ HTTP/1.1
If the server yields an HTTP 200 OK status instead of an HTTP 403 Forbidden response, the vulnerability is verified. The returned HTML contains the pre-populated input fields of the form. The attacker can extract the field values programmatically or manually directly from the page source, achieving full read access to the target snippet instance.
The primary security consequence of this vulnerability is the loss of confidentiality. The severity is marked as Medium with a CVSS v3.1 score of 6.5. This classification reflects that exploitation does not affect the integrity of the original snippet and carries no availability impact.
Despite the lack of integrity impact, the confidentiality risk remains substantial if snippets contain sensitive data. In Wagtail environments, snippets are often used to store API configuration tokens, customer information, internal documentation, or metadata. If a low-privileged editor or external contributor can view these assets, the breach could escalate to broader systemic compromise.
Furthermore, the vulnerability requires low privileges and no user interaction. This combination makes it suitable for automated internal enumeration. Because the attack vector is purely network-based, any authenticated user capable of reaching the Wagtail administrative panel poses a risk of data exfiltration.
The recommended resolution is to upgrade Wagtail to a patched version immediately. The security patch is backported to all active release branches. Administrators must deploy version 7.0.9, 7.3.4, 7.4.3, or 8.0rc2 depending on their current major release branch.
For deployments where upgrading packages is temporarily unfeasible, access control modifications must be enforced. Security teams should audit Django group assignments and revoke 'add' permissions for any snippet class containing sensitive data from users who do not require reading access. This minimizes the active attack surface.
To detect potential exploitation, security operations teams should analyze web server access logs. Standard telemetry should be scanned for sequential patterns targeting the /copy/ paths of the Wagtail admin interface. A pattern of rapid GET requests directed at multiple instance IDs from a single low-privileged account indicates active enumeration.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Wagtail CMS Wagtail | >= 0, < 7.0.9 | 7.0.9 |
Wagtail CMS Wagtail | >= 7.1, < 7.3.4 | 7.3.4 |
Wagtail CMS Wagtail | >= 7.4, < 7.4.3 | 7.4.3 |
Wagtail CMS Wagtail | == 8.0rc1 | 8.0rc2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-285 |
| Attack Vector | Network |
| CVSS Score | 6.5 |
| Exploit Status | none |
| KEV Status | Not listed |
| Impact | Confidentiality |
The software does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.
An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.
GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.
CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.
CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.
An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.