CVE-2026-58654
Last modified
CVE-2026-58654 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. The Grav API plugin (getgrav/grav-plugin-api) 1.0.0 contains an unrestricted file upload vulnerability in the avatar upload endpoint (/api/v1/users/user/avatar). The endpoint validates only the client-declared MIME type (getClientMediaType) beginning with 'image/' and does not inspect the actual file content or restrict the resulting extension, allowing an authenticated user to store arbitrary content — including PHP code, SVG with embedded JavaScript, and polyglot payloads — under user/accounts/avatars/ with predictable filenames.
Description
The Grav API plugin (getgrav/grav-plugin-api) 1.0.0 contains an unrestricted file upload vulnerability in the avatar upload endpoint (/api/v1/users/user/avatar). The endpoint validates only the client-declared MIME type (getClientMediaType) beginning with 'image/' and does not inspect the actual file content or restrict the resulting extension, allowing an authenticated user to store arbitrary content — including PHP code, SVG with embedded JavaScript, and polyglot payloads — under user/accounts/avatars/ with predictable filenames. Direct HTTP access to the stored files is blocked by .htaccess (returns 403), but the files persist on disk and could lead to remote code execution or stored XSS in the presence of a path traversal flaw or server misconfiguration. Fixed in 1.0.1.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Grav | Grav | < 1.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-58654?
How severe is CVE-2026-58654?
How do I fix CVE-2026-58654?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58643Improper neutralization of input during web page generation …6.1
- CVE-2026-58644Deserialization of untrusted data in Microsoft Office ShareP…9.8
- CVE-2026-58647Improper neutralization of input during web page generation …5.4
- CVE-2026-5865Type Confusion in V8 in Google Chrome prior to 147.0.7727.55…8.8
- CVE-2026-58652luci-app-travelmate (and the travelmate package) contain a p…7.7
- CVE-2026-58653PraisonAI before 0.1.7 fails to validate that project_id in …5.3
- CVE-2026-58655The bundled Grav Flex Objects plugin (getgrav/grav-plugin-fl…8.8
- CVE-2026-58656Grav API plugin before v1.0.0-rc.16 accepts JWT tokens via t…8.7
- CVE-2026-58657Grav before 2.0.0 (affected through 2.0.0-rc.9 and the 2.0 b…4.8
- CVE-2026-58658GPUStack through 2.2.1, fixed in commit 4e20551, contains an…8.8
- CVE-2026-58659PyTorch Lightning through 2.6.5, fixed in commit d710d68, co…8.4
- CVE-2026-5866Use after free in Media in Google Chrome prior to 147.0.7727…8.8
Are you affected by CVE-2026-58654?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
