Advisory

PYSEC-2026-2418

Also known as: 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

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

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:31 UTC

Affected packages and fixes

ckan

PyPI · All systems

Affected

  • introduced 2.10.0, fixed 2.10.10, introduced 2.11.0, fixed 2.11.5 (ecosystem)

Fixed versions

2.10.10, 2.11.5

Fix

  • Fixed version 2.10.10
    pip install --upgrade ckan==2.10.10
  • Fixed version 2.11.5
    pip install --upgrade ckan==2.11.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences