CVE-2021-29460

Public Exploit
Cross-site scripting (XSS) from unsanitized uploaded SVG files

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.

Category

7.6
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.99% Top 25%
Third-Party Advisory packetstormsecurity.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: getkirby kirby
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-29460?
CVE-2021-29460 has been scored as a high severity vulnerability.
How to fix CVE-2021-29460?
To fix CVE-2021-29460, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-29460 being actively exploited in the wild?
It is possible that CVE-2021-29460 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-29460?
CVE-2021-29460 affects getkirby kirby.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.