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

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-14T13:37:13.000Z
- Modified: 2026-06-17T03:39:52.600Z
- Weaknesses: CWE-79, CWE-352
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- Unknown Gallery from files: from 1.6.0 up to 1.6.0
- gallery_from_files_project gallery_from_files: up to 1.6.0

## Every score

- 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/6bb4eb71-d702-4732-b01f-b723077d66ca> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24349](https://www.cve.org/CVERecord?id=CVE-2021-24349), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24349](https://nvd.nist.gov/vuln/detail/CVE-2021-24349), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24349 · Whole record: https://cve.day/CVE-2021-24349.json · Rebuilt by cve.day 2026-11-25T22:58:01.853Z
