CVE-2026-61456
MEDIUM 5.1 PoC AVAILABLE ALL-YEARSThe 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.
Public exploit or PoC code exists. The barrier to attack is reduced — watch closely.
Exploitation likelihood
0.1%chance of exploitation in 30 days · 4th percentile
Impact if exploited
5.1CVSS 4.0 · MEDIUM · CNA
- ConfidentialityLow
- IntegrityLow
- AvailabilityNone
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ⚠Privileges: Requires a low-privilege account
- ⚠User interaction: Succeeds with passive user activity
- ✓Complexity: No special conditions — reliably repeatable
- ✓Requirements: No special attack requirements
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept & exploit code
- reference https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p
- github-search https://github.com/search?q=%22CVE-2026-61456%22&type=repositories
Test against your own equipment
curl -s https://vulnpedia.com/cve/CVE-2026-61456/poc.jsonMachine-readable PoC index for this CVE (for automation).For defensive triage, patch verification, and authorized testing on systems you own. Machine-readable: /cve/CVE-2026-61456/poc.json
Weakness (CWE)
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSS vector
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
All CVSS metrics
- MEDIUM 5.1 v4.0 · CNA Primary
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 - MEDIUM 4.6 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - MEDIUM 5.1 v4.0 · NVD Secondary
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 - MEDIUM 4.6 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N