CVE-2026-25133: October Rain has Stored XSS via SVG Filter Bypass
A stored cross-site scripting (XSS) vulnerability was identified in the SVG sanitization logic. The regex pattern used to strip on event handler attributes could be bypassed using a crafted payload that exploits how the pattern matches attribute boundaries.
Published Apr 14, 2026 · Updated Jun 16, 2026
Affected packages
october/rain
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0, <= 4.1.9
- Fixed in
- 4.1.10
- Check
composer show october/rain
october/rain
- Ecosystem
- Composer (PHP)
- Affected
- <= 3.7.13
- Fixed in
- 3.7.14
- Check
composer show october/rain
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A stored cross-site scripting (XSS) vulnerability was identified in the SVG sanitization logic. The regex pattern used to strip on* event handler attributes could be bypassed using a crafted payload that exploits how the pattern matches attribute boundaries.
Impact
- Stored XSS via malicious SVG files uploaded through the Media Manager
- Could allow privilege escalation if a superuser views or embeds the malicious SVG
- Requires authenticated backend access with media upload permissions (
media.library.create) - SVG must be viewed or embedded in a page to trigger
Patches
The vulnerability has been patched in v3.7.14 and v4.1.10. All users are encouraged to upgrade to the latest patched version.
Workarounds
If upgrading immediately is not possible:
- Disable SVG uploads by adding
svgto the blocked extensions in media configuration - Set
media.clean_vectorstotruein configuration (enabled by default)
References
- Reported by Pentest-Tools.com
Credited to daftspunk, mbadanoiu.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
