CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-C2XX-CJMH-9Q8F

GHSA-C2XX-CJMH-9Q8F: Information Disclosure via Inherited Collection View Restriction Bypass in Wagtail API v2

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 21, 2026·6 min read·20 visits

Executive Summary (TL;DR)

Unauthenticated users can exploit Wagtail's API V2 to enumerate and leak metadata of protected images and documents by leveraging a logical flaw where descendant collections fail to inherit parent access restrictions during API queries.

An improper access control vulnerability in Wagtail's Documents and Images API V2 allows unauthenticated remote attackers to retrieve metadata (including titles and filenames) of files residing inside descendant collections of private parent collections, bypassing inherited view restrictions.

Vulnerability Overview

Wagtail CMS contains a security vulnerability in its media management architecture that exposes sensitive metadata to unauthorized clients. The platform permits administrators to structure media assets hierarchically through a collections subsystem built on Django models. This layout enforces organizational isolation and access control boundaries. The system exposes these assets via public endpoints in the Wagtail Documents and Images API V2.\n\nUnder default configurations, endpoints designed to output public media do not validate ancestral tree structures when assessing view restrictions. While parent collections can be explicitly restricted to authenticated groups or specific passwords, child collections fail to inherit these boundaries when evaluated by the API. This vulnerability is classified as an improper access control issue under CWE-200, CWE-284, and CWE-276.\n\nThis systemic failure allows unauthenticated remote attackers to query the API and list administrative properties of assets inside protected hierarchies. The exposed data includes document names, asset titles, and download path strings. Although the actual file binary access might require separate authentication, leaking asset directories weakens the organizational security posture.

Root Cause Analysis

The root cause of this vulnerability lies in the logical implementation of the collection query filters within Wagtail's API viewsets. Wagtail structures collections hierarchically using the django-treebeard library, which implements a materialized path tree pattern. To implement security boundaries, Wagtail stores restriction parameters in the CollectionViewRestriction model, specifying which collection nodes require authentication.\n\nWhen a client sends a request to the Documents or Images API, the backend filters the target queryset to present only public entities. The vulnerable query filtered collections using a direct relational check, specifically searching for collections that had no direct view restriction entry (restrictions__isnull=True). This direct query ignores the tree taxonomy, meaning it checks only for a direct database relation on that specific node.\n\nBecause nested descendant collections do not typically contain direct duplicate CollectionViewRestriction records, they evaluated to True for the restrictions__isnull lookup. This execution bypasses the expected recursive inheritance logic of the tree. Consequently, the API treats descendant collections as fully public, allowing administrative filenames and metadata to be leaked to external API consumers.

Code Analysis

The vulnerable code path utilized an overly simplistic approach to identify public files. It filtered media based on whether their direct collections lacked explicit restrictions. The code failed to traverse the ancestor path chain to check if a parent collection was marked restricted.\n\nTo resolve this, the patch introduces recursive tree-path checking. By querying the CollectionViewRestriction model, Wagtail retrieves the paths of all directly restricted collections. It then constructs a Django query that excludes any collection whose tree path starts with any of those restricted paths. Because django-treebeard uses materialized path strings, checking if a path starts with a parent's path matches the parent and all nested descendants.\n\npython\n# Patched implementation in Wagtail collections query framework\nfrom django.db import models\nfrom wagtail.models import CollectionViewRestriction, Collection\n\ndef public(self):\n # Extract paths of collections with active restrictions\n restricted_paths = CollectionViewRestriction.objects.values_list(\n 'collection__path', flat=True\n )\n \n if not restricted_paths:\n return self\n \n # Dynamically build Q object to match restricted paths and descendants\n query = models.Q()\n for path in restricted_paths:\n # Using tree path starts-with pattern to isolate the tree branch\n query |= models.Q(path__startswith=path)\n \n # Exclude all matched paths from the public collection queryset\n return self.exclude(query)\n\n\nmermaid\ngraph LR\n Parent["Restricted Parent Collection\nPath: '00010001'"] --> Child["Nested Child Collection\nPath: '000100010002'"]\n Child --> File["Confidential Document"]\n API["API V2 Query"] -.->|Bypasses restriction| Child\n style API stroke:#f66,stroke-width:2px\n\n\nWe assess this patch as highly robust and complete. Utilizing the tree's materialized path properties guarantees that no depth of nesting can bypass the constraint. This mechanism relies on Django's low-level database query compiler, which prevents logical race conditions and ensures that the restriction filter is executed directly at the database level before serialization.

Exploitation and Payload Analysis

Exploitation of this vulnerability requires no prior authentication and minimal network complexity. The attacker only needs network access to the public API endpoints. This setup is common in headless Wagtail architectures where the frontend queries the Wagtail backend via API calls.\n\nTo execute the attack, an unauthorized agent sends an HTTP GET request to the target API endpoints. The default routes are /api/v2/images/ or /api/v2/documents/. Under a vulnerable installation, the server returns a complete list of documents or images that reside within nested collections, irrespective of their parent restrictions.\n\nAn exemplary attack request and JSON payload output displays the structural leak of internal documents:\n\njson\n{\n \"meta\": {\n \"total_count\": 1\n },\n \"items\": [\n {\n \"id\": 109,\n \"meta\": {\n \"type\": \"wagtaildocs.Document\",\n \"detail_url\": \"https://example.com/api/v2/documents/109/\",\n \"download_url\": \"/documents/109/q4_merger_strategy_confidential.pdf\"\n },\n \"title\": \"Q4 Merger Strategy Confidential\"\n }\n ]\n}\n\n\nAlthough downloading the file binary from /documents/109/ may prompt an authentication challenge if separate page-level restrictions or document-view middlewares are active, the metadata exposure itself is highly valuable. Attackers learn sensitive titles, structure, and operational classifications, exposing internal activities and business intelligence.

Impact Assessment

The impact of GHSA-C2XX-CJMH-9Q8F is characterized as moderate-severity information disclosure. In enterprise CMS contexts, Wagtail is often used to manage internal intranet wikis, sensitive documentation pipelines, or staging environments for upcoming products. Exposing filenames and project directories reveals proprietary schedules, personal data, and corporate structure.\n\nAccording to the CVSS v3.1 system, this issue receives a base score of 5.3 (Medium). The vector breakdown highlights key parameters: Network vector (AV:N), Low complexity (AC:L), No permissions required (PR:N), No user interaction (UI:N), and Partial Confidentiality impact (C:L) with No integrity (I:N) or availability (A:N) impact.\n\nAlthough there is no current evidence of active, weaponized exploits in public database systems, verification of the issue remains trivial. The vulnerability can be exposed with standard diagnostic tools, putting organizations at risk of passive automated indexing if their endpoints remain open to the public internet.

Remediation and Mitigation Guidance

The primary remediation path is upgrading the Wagtail core package to the designated secure versions. Maintainers have backported patches across all active release branches. For deployments utilizing the 7.0 series, upgrade to 7.0.9. Deployments on versions 7.1 through 7.3 must update to 7.3.4. For installations running 7.4, upgrade to 7.4.3. Implementations on the 8.0 release candidate series must transition to 8.0rc2.\n\nIf upgrading immediately is not technically feasible due to dependency lockups, administrators can implement a coding workaround. Overriding the default API viewsets inside the API router configuration allows engineers to enforce Django Rest Framework authentication permission classes. Requiring authentication blocks anonymous client enumeration entirely.\n\npython\n# Configuration workaround in api.py\nfrom wagtail.api.v2.router import WagtailAPIRouter\nfrom wagtail.images.api.v2.views import ImagesAPIViewSet\nfrom rest_framework.permissions import IsAuthenticated\n\nclass SecuredImagesAPIViewSet(ImagesAPIViewSet):\n # Restrict endpoint to authenticated users only\n permission_classes = [IsAuthenticated]\n\napi_router = WagtailAPIRouter('wagtailapi')\napi_router.register_endpoint('images', SecuredImagesAPIViewSet)\n\n\nAlternatively, security teams can implement traffic filtration policies on their reverse proxies or Web Application Firewalls (WAF). By configuring rules that block external access to /api/v2/images/ and /api/v2/documents/ while permitting access only to trusted internal microservices, the exposure window is completely closed until application-level patches are deployed.

Technical Appendix

CVSS Score
5.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected Systems

Wagtail CMS Documents API V2Wagtail CMS Images API V2

Affected Versions Detail

Product
Affected Versions
Fixed Version
wagtail
Wagtail
< 7.0.97.0.9
wagtail
Wagtail
>= 7.1, < 7.3.47.3.4
wagtail
Wagtail
>= 7.4, < 7.4.37.4.3
wagtail
Wagtail
>= 8.0rc1, < 8.0rc28.0rc2
AttributeDetail
CWE IDCWE-200 / CWE-284 / CWE-276
Attack VectorNetwork
CVSS v3.15.3 (Medium)
Exploit StatusNone / Unproven
KEV StatusNot Listed
ImpactInformation Disclosure (Metadata Leakage)

MITRE ATT&CK Mapping

T1083File and Directory Discovery
Discovery
T1592Gather Victim Host Information
Reconnaissance
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor who is not authorized to have access to that information.

Vulnerability Timeline

Vulnerability discovered and reported by security researcher Ta Duc Thien
2026-08-20
Wagtail security advisory GHSA-c2xx-cjmh-9q8f is officially published
2026-08-20
Wagtail releases patch versions 7.0.9, 7.3.4, 7.4.3, and 8.0rc2 to resolve the issue
2026-08-20

References & Sources

  • [1]GitHub Security Advisory: GHSA-c2xx-cjmh-9q8f
  • [2]Wagtail CMS GitHub Repository
  • [3]Wagtail 7.0.9 Release Notes
  • [4]Wagtail 7.3.4 Release Notes
  • [5]Wagtail 7.4.3 Release Notes

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•34 minutes ago•CVE-2026-126358
5.3

CVE-2026-126358: Authorization Bypass via Wildcard Middleware Omission in Hono RegExpRouter

An incorrect authorization vulnerability (CWE-863) exists in the Hono web application framework (npm package `hono`) from version 4.1.4 prior to 4.13.16. Flaws in the registration-time coverage calculation and regular expression compilation within `RegExpRouter` cause wildcard middleware to be omitted under three specific routing conditions: parameter pattern equivalence mismatches, wildcard boundary collisions, and request paths containing percent-encoded line terminators. Because Hono's default `SmartRouter` selects `RegExpRouter` for most standard web applications, unauthenticated remote clients can bypass authentication, authorization, or security middleware registered on wildcard paths to directly access protected route handlers or the application's not-found handler.

Alon Barad
Alon Barad
1 views•13 min read
•about 2 hours ago•CVE-2026-126357
5.3

CVE-2026-126357: Authentication Bypass via Mount Path Transformation in Hono

CVE-2026-126357 (GHSA-4m76-xfj5-7975) is an authentication bypass vulnerability in the Hono web application framework prior to version 4.13.16. The flaw resides in the prefix-stripping and URL reconstruction logic of `app.mount()` and the `mount()` middleware. Two distinct path transformation errors—static route-pattern length slicing on dynamic prefixes and URL normalization of decoded pathnames—create a routing discrepancy between the outer Hono router and the mounted sub-application. An unauthenticated attacker can exploit these discrepancies to bypass outer authentication or authorization middleware and access protected inner routes directly.

Amit Schendel
Amit Schendel
2 views•9 min read
•about 3 hours ago•CVE-2026-126356
5.3

CVE-2026-126356: Multipart Form Validation Bypass in Hono Web Framework

A parser differential vulnerability exists in the Hono web application framework versions 4.5.1 prior to 4.13.16. The built-in form validation middleware (`validator('form')`) utilizes an overly restrictive regular expression to evaluate the HTTP `Content-Type` header for `multipart/form-data` payloads. When a client supplies additional valid MIME parameters (such as `charset=utf-8`) or multiple whitespace characters following a semicolon delimiter, the regular expression fails to match. Consequently, the validator passes an empty object to the validation callback instead of the parsed form fields. If the validation logic permits empty objects or only checks for disallowed values on optional properties, the request passes validation, allowing downstream route handlers calling `c.req.parseBody()` or `c.req.formData()` to process unvalidated user input.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 4 hours ago•CVE-2026-126355
5.3

CVE-2026-126355: Cross-Site Request Forgery Protection Bypass via Hyperlink Auditing in Hono

CVE-2026-126355 (GHSA-46wx-v44x-9hh2) is a Cross-Site Request Forgery (CSRF) validation bypass in Hono, a web application framework for JavaScript runtimes. Prior to version 4.13.16, Hono's built-in csrf() middleware only evaluated origin headers for requests matching standard HTML form MIME types (application/x-www-form-urlencoded, multipart/form-data, and text/plain). By leveraging the HTML anchor ping attribute in Chromium-based browsers, an attacker can initiate an unprompted, credentialed cross-origin HTTP POST request with Content-Type: text/ping without triggering a CORS preflight request. Because text/ping was omitted from the middleware regular expression, requests bypassed Origin and Sec-Fetch-Site verification, allowing unauthorized state-changing operations.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 5 hours ago•CVE-2026-128067
8.4

CVE-2026-128067: Out-of-Bounds Heap Read and Write in Pillow libtiff Encoder via Geometry Tag Overrides

CVE-2026-128067 is a memory corruption vulnerability in Pillow (versions 2.3.0 through 12.3.0) occurring when saving compressed TIFF images via the underlying libtiff encoder. By supplying crafted image geometry tags through exif=, tiffinfo=, or a source TIFF IFD, an attacker can override the scanline dimensions configured in libtiff while Pillow allocates the internal row buffer based strictly on the physical image dimensions. This mismatch induces an out-of-bounds heap read during scanline encoding, and escalates to an out-of-bounds heap write when TIFF Predictor 2 (horizontal differencing) is enabled.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 6 hours ago•CVE-2026-128066
8.7

CVE-2026-128066: Quadratic Memory Amplification Denial of Service in Pillow TIFF and EXIF IFD Parser

CVE-2026-128066 (GHSA-wqgw-9xfh-qf2g) is a resource allocation vulnerability (CWE-770) in the Python Pillow imaging library affecting versions 1.0 through 12.3.0. The flaw resides in the ImageFileDirectory_v2.load() method within src/PIL/TiffImagePlugin.py, which processes Tag Image File Format (TIFF) structures and Exchangeable Image File Format (EXIF) metadata across multiple container formats. By supplying an image with thousands of IFD tag entries that point to overlapping or identical file offsets, an attacker can trigger quadratic memory amplification (O(N * filesize)). Because the vulnerability occurs during metadata parsing rather than pixel decoding, it bypasses Pillow's built-in decompression bomb protections (Image.MAX_IMAGE_PIXELS).

Amit Schendel
Amit Schendel
3 views•13 min read