NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-41255: CKAN has CSRF exemption primed by anonymous requests

mediumCVSS 3.1 6.1GHSA-mcvf-jxcw-vj73

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

Credited to Shirshaw64p.

References

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 entries