CVE-2022-4526: django-photologue vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.24621%
CWE
Published
12/15/2022
Updated
9/16/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| django-photologue | pip | <= 3.15.1 | 3.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the template's use of the '|safe' filter on the user-controlled 'object.caption' field. The commit 960cb06 explicitly removes this filter to enable auto-escaping. The added test case verifies HTML is properly escaped in titles and captions. While not a traditional code function, the template variable rendering with unsafe filtering constitutes the vulnerable implementation point.