CVE-2026-61456
published medium CVSS 4.0 · 5.1Grav before 1.0.3 Stored XSS via SVG Upload API
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 1.0.3 (affected · semver) · 1.0.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.6 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 1.0.3 (affected · semver)1.0.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- GitHub Security Advisory (GHSA-7vhm-8x52-2r5p) https://github.com/getgrav/grav/security/advisories/GHSA-7vhm-8x52-2r5p
- VulnCheck Advisory: Grav before 1.0.3 Stored XSS via SVG Upload API https://www.vulncheck.com/advisories/grav-before-stored-xss-via-svg-upload-api
Provider assertions
2VulnCheck · cna
Grav before 1.0.3 Stored XSS via SVG Upload API
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a292e54fde4ba12d2dfbda7de08f4d0e456a4e62f52902822ef52d34873c2873
- Ingested
- 23 Sep 2026, 09:24:40 UTC
- Source record
- Official CVE record