CVE-2026-41255: CKAN has CSRF exemption primed by anonymous requests
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 flaskapp middleware. Thsi API was never intended for request level changes, it is primarily a decorator for static configuration.
Published Apr 29, 2026 · Updated May 14, 2026
Affected packages
ckan
- Ecosystem
- PyPI
- Affected
- >= 2.10.0, < 2.10.10
- Fixed in
- 2.10.10
- Check
pip show ckan
ckan
- Ecosystem
- PyPI
- Affected
- >= 2.11.0, <= 2.11.4
- Fixed in
- 2.11.5
- Check
pip show ckan
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- Vulnerability report by @Shirshaw64p (original reporter)
Credited to Shirshaw64p.
References
- https://github.com/ckan/ckan/security/advisories/GHSA-mcvf-jxcw-vj73
- https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29
- https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29
- https://nvd.nist.gov/vuln/detail/CVE-2026-41255
- https://github.com/Shirshaw64p/security-advisories/tree/main/CVE-2026-41255
- https://github.com/advisories/GHSA-mcvf-jxcw-vj73
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-104773
CKAN: Session Fixation in Registration View
medium6.8Nov 20, 2026CVE-2026-42032
CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql`
medium6.7Apr 30, 2026CVE-2026-41132
CKAN has no certificate validation on STMP connection
medium6.6Apr 29, 2026CVE-2026-42031
CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
high8.3Apr 29, 2026CVE-2025-54384
CKAN vulnerable to stored XSS in resource description
medium6.3Oct 29, 2025CVE-2025-64100
CKAN vulnerable to fixed session IDs
medium6.1Oct 29, 2025
