CVE-2026-61456
Last modified
CVE-2026-61456 is a medium-severity vulnerability rated 5.1/10 on the CVSS scale. The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 fails to sanitize SVG files uploaded through the POST /api/v1/media endpoint. The HandlesMediaUploads::processUploadedFile() method validates only the file extension and never invokes Security::sanitizeSVG(), so an authenticated attacker with the api.media.write permission can upload an SVG containing arbitrary JavaScript.
Description
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 fails to sanitize SVG files uploaded through the POST /api/v1/media endpoint. The HandlesMediaUploads::processUploadedFile() method validates only the file extension and never invokes Security::sanitizeSVG(), so an authenticated attacker with the api.media.write permission can upload an SVG containing arbitrary JavaScript. The file is stored unmodified and served with Content-Type: image/svg+xml; when an administrator opens it in a browser (directly or via <object>/<iframe>), the embedded script executes in their session context, enabling cookie theft and session hijacking.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/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 |
|---|---|---|
| getgrav | grav | < 1.0.3 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-61456?
How severe is CVE-2026-61456?
How do I fix CVE-2026-61456?
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-61450Grav before 2.0.2 contains a Twig sandbox bypass that allows…7.1
- CVE-2026-61451The Grav API plugin (grav-plugin-api) before 1.0.4 does not …9.6
- CVE-2026-61452The Grav API plugin (getgrav/grav-plugin-api) before 2.0.4 c…6.9
- CVE-2026-61453Grav v2.0.0 contains a cross-site scripting vulnerability (f…6.1
- CVE-2026-61454The Grav Admin2 plugin (getgrav/grav-plugin-admin2) before 2…8.7
- CVE-2026-61455Grav before 2.0.1 contains a decompression bomb vulnerabilit…7.1
- CVE-2026-61457The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 c…8.8
- CVE-2026-61458PasswordPusher before 2.9.2 contains a brute-force vulnerabi…8.7
- CVE-2026-61459MCP Server Kubernetes before 3.9.0 contains an argument inje…9.8
- CVE-2026-6146Amazon::Credentials versions through 1.2.0 for Perl uses ran…5.3
- CVE-2026-61460Krayin CRM through 2.2.3 contains an insecure direct object …8.8
- CVE-2026-61461Dify before 1.16.0-rc1 contains a SQL injection vulnerabilit…8.8
Are you affected by CVE-2026-61456?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
