# CVE-2026-30942: Flare has a Path Traversal in /api/avatars/[filename]

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA: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.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-10T16:44:10.305Z
- Modified: 2026-06-17T10:33:11.680Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Flare is a Next.js-based, self-hostable file sharing platform that integrates with screenshot tools. Prior to 1.7.3, an authenticated path traversal vulnerability in /api/avatars/[filename] allows any logged-in user to read arbitrary files from within the application container. The filename URL parameter is passed to path.join() without sanitization, and getFileStream() performs no path validation, enabling %2F-encoded ../ sequences to escape the uploads/avatars/ directory and read any file accessible to the nextjs process under /app/. Authentication is enforced by Next.js middleware. However, on instances with open registration enabled (the default), any attacker can self-register and immediately exploit this. This vulnerability is fixed in 1.7.3.

(As written by CVE List.)

## Affected

- FlintSH Flare: < 1.7.3; before 1.7.3

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/FlintSH/Flare/security/advisories/GHSA-h639-p7m9-mpgp> (exploit, mitigation, vendor-advisory)
- <https://github.com/FlintSH/Flare/commit/cd894cc480619aef958be5de72b1445222fd8d36> (patch)
- <https://github.com/FlintSH/Flare/releases/tag/v1.7.3> (product, release-notes)

## Sources

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

---

Page: https://cve.day/CVE-2026-30942 · Whole record: https://cve.day/CVE-2026-30942.json · Rebuilt by cve.day 2026-11-25T22:59:15.619Z
