CVE-2021-29460

HIGH

Kirby < 3.5.4 - Stored Cross-Site Scripting via SVG File Upload

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-29460. PoCs published by Sreenath Raghunathan.

AI-analyzed exploit summary This exploit demonstrates a stored XSS vulnerability in Kirby CMS 3.5.3.1 by uploading a malicious SVG file as a user avatar. The SVG contains embedded JavaScript that triggers an alert, proving the XSS execution.

Description

Kirby is an open source CMS. An editor with write access to the Kirby Panel can upload an SVG file that contains harmful content like `<script>` tags. The direct link to that file can be sent to other users or visitors of the site. If the victim opens that link in a browser where they are logged in to Kirby, the script will run and can for example trigger requests to Kirby's API with the permissions of the victim. This vulnerability is critical if you might have potential attackers in your group of authenticated Panel users, as they can escalate their privileges if they get access to the Panel session of an admin user. Depending on your site, other JavaScript-powered attacks are possible. Visitors without Panel access can only use this attack vector if your site allows SVG file uploads in frontend forms and you don't already sanitize uploaded SVG files. The problem has been patched in Kirby 3.5.4. Please update to this or a later version to fix the vulnerability. Frontend upload forms need to be patched separately depending on how they store the uploaded file(s). If you use `File::create()`, you are protected by updating to 3.5.4+. As a work around you can disable the upload of SVG files in your file blueprints.

Exploits (1)

exploitdb WORKING POC
by Sreenath Raghunathan · textwebappsphp
https://www.exploit-db.com/exploits/49808

This exploit demonstrates a stored XSS vulnerability in Kirby CMS 3.5.3.1 by uploading a malicious SVG file as a user avatar. The SVG contains embedded JavaScript that triggers an alert, proving the XSS execution.

Classification
Working Poc 95%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: Kirby CMS 3.5.3.1
Auth required
Prerequisites: Valid user session with CSRF token · Access to the avatar upload endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3
Core References
Exploit, Third Party Advisory x_refsource_confirm
https://github.com/getkirby/kirby/security/advisories/GHSA-qgp4-5qx6-548g
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/getkirby/kirby/releases/tag/3.5.4
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
http://packetstormsecurity.com/files/162359/Kirby-CMS-3.5.3.1-Cross-Site-Scripting.html

Scores

CVSS v3 7.6
EPSS 0.0112
EPSS Percentile 78.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Details

CWE
CWE-79
Status published
Products (2)
getkirby/cms 0 - 3.5.4Packagist
getkirby/kirby < 3.5.4
Published Apr 27, 2021
Tracked Since Feb 18, 2026