# CVE-2022-4526: django-photologue Default Template photo_detail.html cross site scripting

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2022-12-15T00:00:00.000Z
- Modified: 2026-06-17T05:21:06.767Z
- Also known as: GHSA-287q-jfcp-9vhv, PYSEC-2022-43061
- Weaknesses: CWE-79, CWE-707
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in django-photologue up to 3.15.1 and classified as problematic. Affected by this issue is some unknown functionality of the file photologue/templates/photologue/photo_detail.html of the component Default Template Handler. The manipulation of the argument object.caption leads to cross site scripting. The attack may be launched remotely. Upgrading to version 3.16 is able to address this issue. The name of the patch is 960cb060ce5e2964e6d716ff787c72fc18a371e7. It is recommended to apply a patch to fix this issue. VDB-215906 is the identifier assigned to this vulnerability.

(As written by CVE List.)

## Affected

- unspecified django-photologue: 3.15.0; 3.15.1
- django-photologue (PyPI): before 3.16; before 960cb060ce5e2964e6d716ff787c72fc18a371e7
- django-photologue_project django-photologue: up to 3.15.1

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/richardbarran/django-photologue/issues/223> (issue-tracking, report, third-party-advisory, web)
- <https://github.com/richardbarran/django-photologue/commit/960cb060ce5e2964e6d716ff787c72fc18a371e7> (fix, patch, third-party-advisory, web)
- <https://vuldb.com/?id.215906> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4526> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-photologue/PYSEC-2022-43061.yaml> (web)
- <https://github.com/richardbarran/django-photologue> (package)
- <https://github.com/advisories/GHSA-287q-jfcp-9vhv> (advisory)

## Sources

- CVE List: [CVE-2022-4526](https://www.cve.org/CVERecord?id=CVE-2022-4526), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-287q-jfcp-9vhv](https://github.com/advisories/GHSA-287q-jfcp-9vhv), CC-BY-4.0, modified 2024-09-16
- NVD: [CVE-2022-4526](https://nvd.nist.gov/vuln/detail/CVE-2022-4526), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43061](https://osv.dev/vulnerability/PYSEC-2022-43061), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2022-4526 · Whole record: https://cve.day/CVE-2022-4526.json · Rebuilt by cve.day 2026-11-25T22:58:17.586Z
