4.8 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
django CMS: Page cache ignores plugin-declared Vary headers (disclosure & poisoning)
django CMS is a content management system powered by Django. Prior to 5.0.8 and in 5.1.0a1, the django CMS page cache in cms/cache/page.py ignores request headers declared by plugins through get_vary_cache_on(). The _page_cache_key function includes the cache prefix, site, language, path, and timezone but not the declared header values. Although set_page_cache adds those names to the response Vary header, get_page_cache retrieves the first stored variant under the same header-agnostic key. When CMS_PAGE_CACHE is enabled and a plugin varies content on a header such as Country-Code, one visitor can receive another visitor’s request-specific content, and an unauthenticated attacker can prime the cache with attacker-chosen content. This issue is fixed in versions 5.0.8 and 5.1.0.
References
-
https://github.com/django-cms/django-cms/security/advisories/GHSA-fwjf-m4qw-9f2x x_refsource_CONFIRM
-
https://github.com/django-cms/django-cms/pull/8646 x_refsource_MISC
-
https://github.com/django-cms/django-cms/pull/8647 x_refsource_MISC
-
https://github.com/django-cms/django-cms/releases/tag/5.0.8 x_refsource_MISC
-
https://github.com/django-cms/django-cms/releases/tag/5.1.0 x_refsource_MISC
Affected products
- ==< 5.0.8
- ==>= 5.1.0a1, < 5.1.0
Matching in nixpkgs
pkgs.python313Packages.django-cms
Lean enterprise content management powered by Django
Package maintainers
-
@onny Jonas Heinrich <onny@project-insanity.org>