CVE-2021-29460: Cross-site scripting (XSS) from unsanitized uploaded SVG files

Published Apr 27, 2021
·
Updated

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.

Affected Software

1 affected component
getkirby Kirby<3.5.4

Event History

Apr 27, 2021
CVE Published
via MITRE·08:10 PM
Data Sourced
via MITRE·08:10 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-29460?

CVE-2021-29460 is rated as a medium severity vulnerability due to its potential for cross-site scripting attacks.

2

How do I fix CVE-2021-29460?

To fix CVE-2021-29460, upgrade to Kirby version 3.5.4 or later where the vulnerability has been addressed.

3

Who is affected by CVE-2021-29460?

CVE-2021-29460 affects users of Kirby versions prior to 3.5.4 who have write access to the Kirby Panel.

4

What kind of content can be uploaded due to CVE-2021-29460?

CVE-2021-29460 allows the upload of malicious SVG files that can contain harmful scripts.

5

Can CVE-2021-29460 lead to data theft?

Yes, CVE-2021-29460 can potentially lead to data theft if an attacker exploits the vulnerability to execute scripts in a user's browser.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203