CKAN CVE-2026-41255
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDiscover XSS in CKAN form
-
DeliveryCraft malicious page embedding attack
-
ExploitLure authenticated user to page
-
InstallTrigger protected endpoint via XSS payload
-
C2Disable CSRF protection in worker process
-
ExecuteExecute authenticated state-change request
-
ImpactPersist exemption across victim's subsequent requests
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that CKAN is deployed in a multi-process configuration (such as uWSGI with multiple workers or similar) where request state persists across multiple user sessions within a single worker process. A single-process CKAN instance is vulnerable to the state mutation but the attack window is narrower because the exemption flag is reset when the process restarts or the request completes, depending on implementation details. Additionally, successful exploitation requires the presence of a cross-site scripting vulnerability in the same CKAN application; the CSRF exemption alone cannot be leveraged without XSS to craft and inject the malicious requests into a victim's session. Unauthenticated HTTP access to any protected endpoint is required to trigger the state mutation. Default CKAN configurations are affected; no special configuration of flask-wtf or CSRF settings is necessary to enable the vulnerability. |
| Impact | CVSS 6.1 with network vector, low complexity, no authentication required, and user interaction required (UI:R) reflects moderate severity; however, multiple risk signals require careful interpretation. The attack vector is network-accessible (AV:N) and requires no prior authentication (PR:N), making initial trigger trivial for any internet-connected CKAN instance. The complexity is low (AC:L), meaning no special conditions or timing are needed beyond triggering an endpoint hit. Critically, user interaction is required (UI:R), limiting direct exploitation to scenarios where an attacker can deliver XSS payload to the same browser and domain. The scope change (S:C) indicates impact crossing trust boundaries. The real risk depends entirely on whether XSS vulnerabilities exist in the CKAN application; the CSRF exemption alone is not exploitable without a second vulnerability. CISA KEV status is not provided in the input, and no exploit code POC status is confirmed. The vulnerability is best classified as a moderate-priority state-corruption issue affecting multi-process deployments and dependent on XSS as the delivery vector. Organizations running single-process CKAN (development only) or those without XSS vulnerabilities face lower real-world risk despite the network-accessible trigger. |
| Exploit ScenarioDerived | An attacker discovers an XSS vulnerability in a CKAN public-facing form or page. The attacker crafts an unauthenticated HTTP request to a CSRF-protected endpoint (e.g., a data deletion or user management action) and embeds the XSS payload in the referrer or as inline JavaScript. When a legitimate CKAN user visits the attacker's malicious page, their browser executes the XSS script, which first triggers the vulnerable CKAN endpoint via the attacker's crafted request (unmarking CSRF protection for that worker), then immediately issues a state-changing request (delete dataset, modify user) using the victim's authenticated session. All subsequent requests in that server worker bypass CSRF validation until the process is recycled. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
CKAN versions 2.10.0 through 2.10.9 and 2.11.0 through 2.11.4 allow unauthenticated requests to permanently disable CSRF protection on endpoints for the lifetime of the server process by triggering a state mutation in the flask-wtf CSRFProtect middleware. Combined with cross-site scripting, an attacker can exploit this to perform authenticated actions using other users' credentials. The vulnerability affects network-accessible CKAN instances with default configurations and has CVSS 6.1 with user interaction required.
RemediationAI
Upgrade CKAN to version 2.10.10 or later if currently on the 2.10.x branch, or to version 2.11.5 or later if on the 2.11.x branch. Upgrade instructions are available at https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29 and https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29 respectively. For organizations unable to patch immediately, implement the following compensating controls: (1) Deploy CKAN using a single-process model or with process isolation such that each worker process handles a limited set of requests before recycling - this limits the duration an exemption flag remains active; (2) restrict network access to CKAN endpoints at the load balancer or firewall level to authenticated IP ranges only, reducing exposure to anonymous request triggering; (3) conduct an urgent security audit for cross-site scripting vulnerabilities in CKAN templates and custom plugins, as XSS is the necessary delivery vector for exploiting the CSRF exemption; (4) implement a Web Application Firewall to detect and block suspicious patterns combining CSRF token reuse with XSS payloads. Note that these controls do not fix the underlying defect and should be considered temporary measures pending patching.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CKAN is a data management and publishing platform built on Flask that uses flask-wtf for CSRF protection. The vulnerability stems from improper use of the CSRFProtect class from flask-wtf, where a member variable tracking CSRF exemption status was stored as a module-level variable in the Flask application middleware rather than being request-scoped. The CSRFProtect decorator API was designed for static, application-startup configuration, not dynamic per-request changes. When an unauthenticated or token-authenticated request accesses a protected endpoint, the exemption flag persists across subsequent requests in the same worker process (relevant for multi-process servers like uWSGI), effectively disabling CSRF validation for all following requests in that process. This violates the principle that CSRF exemptions should be declaratively set at route definition time, not mutated by request handling logic. The root cause is CWE-352 (Cross-Site Request Forgery), compounded by improper state management in a shared middleware object.
Know when Python 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:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/ckan/ckan) · only source for this CVE.
CVSS VectorVendor: https://github.com/ckan/ckan
DescriptionCVE.org
Views can be marked as exempt from CSRF protection
Access to the views via tokens or unauthenticated requests marked the endpoint as not requiring CSRF protection.
The marking was a member variable in flask-wtf.csrf.CSRFProtect(), which was stored as a module level variable in the flask_app middleware. Thsi API was never intended for request level changes, it is primarily a decorator for static configuration.
An unauthenticated request could hit a protected endpoint, exempting it from CSRF protection for the life of the particular server process. (e.g. one worker of uwsgi).
This could be leveraged with XSS to perform actions using other user's credentials.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-mcvf-jxcw-vj73
NVD
CVE.org
EPSS
Exploit-DB