id: PYSEC-2026-2418 published: "2026-07-13T15:02:55.031854Z" modified: "2026-07-13T16:03:42.923562Z" aliases: - CVE-2026-41255 - GHSA-mcvf-jxcw-vj73 summary: CKAN has CSRF exemption primed by anonymous requests details: "Views can be marked as exempt from CSRF protection \n\nAccess to the views via tokens or unauthenticated requests marked the endpoint as not requiring CSRF protection. \n\nThe 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. \n\nAn 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).\n\nThis could be leveraged with XSS to perform actions using other user's credentials.\n\n### References\n\n* [Vulnerability report](https://github.com/Shirshaw64p/security-advisories/tree/main/CVE-2026-41255) by @Shirshaw64p (original reporter)" affected: - package: name: ckan ecosystem: PyPI purl: pkg:pypi/ckan ranges: - type: ECOSYSTEM events: - introduced: 2.10.0 - fixed: 2.10.10 - introduced: 2.11.0 - fixed: 2.11.5 versions: - 2.10.0 - 2.10.1 - 2.10.3 - 2.10.4 - 2.10.5 - 2.10.6 - 2.10.7 - 2.10.8 - 2.10.9 - 2.11.0 - 2.11.1 - 2.11.2 - 2.11.3 - 2.11.4 references: - type: WEB url: https://github.com/ckan/ckan/security/advisories/GHSA-mcvf-jxcw-vj73 - type: ADVISORY url: https://nvd.nist.gov/vuln/detail/CVE-2026-41255 - type: WEB url: "https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29" - type: WEB url: "https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29" - type: WEB url: https://github.com/Shirshaw64p/security-advisories/tree/main/CVE-2026-41255 - type: PACKAGE url: https://github.com/ckan/ckan - type: PACKAGE url: https://pypi.org/project/ckan - type: ADVISORY url: https://github.com/advisories/GHSA-mcvf-jxcw-vj73 severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N