All vulnerabilities

Servers and applications

GHSA-5h3f-pvr7-cr27

Incomplete URL normalization in the Sane sanitizer for SVG files

Severity
Medium 5.1
Published
16 Sept 2026
Last changed
16 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.6.0
Weakness
CWE-180
Attack
Over the network · Needs a user account · Needs someone to view a page or file
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:L
Sources
Project advisories (GitHub)

Description

This vulnerability affects all Kirby sites that accept SVG uploads from users who may not be fully trusted, as well as sites that pass untrusted SVG through Sane::sanitizeFile(), $file->sanitizeContents() or a sanitizing file.create:before hook. The attack requires an authenticated Panel user with permission to upload files.

Your Kirby sites are not affected if every user who can upload files is fully trusted, or if SVG uploads are not accepted by any of your file blueprints. This is not a cross-site scripting issue: the javascript:, vbscript:, data: and related schemes remain correctly blocked.

In affected releases, several of the sanitizer's restrictions inspected the raw attribute value rather than the value a browser would resolve. A URL could therefore be accepted even though the rule being enforced would have rejected what it actually points to.

From getkirby/kirby's security advisory. Shortened; the full text is there.

Workarounds

Until you can update:

  • Do not accept SVG uploads from users you do not fully trust.
  • Embed uploaded SVG files through an element rather than inlining them. This covers the external reference vectors, but not the nested one.
Workarounds as given by getkirby/kirby's security advisory.

Affected software

SoftwareAffected versions
KirbyServers and applications · github:getkirby/kirby
  • From 5.0.0 before 5.6.0

About Kirby

proprietary flat-file content management system

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
52,017Packagist, 15 Nov 2026
Total downloads (Packagist)
731,120Packagist, 15 Nov 2026
GitHub stars
1,539GitHub, 15 Nov 2026
Forks
195GitHub, 15 Nov 2026
Latest release
5.6.3GitHub, 15 Nov 2026
Released
5 Nov 2026GitHub
Written in
PHP, Vue.jsWikidata
First published on GitHub
6 Oct 2017GitHub

Release lines

ReleaseLatestSecurity fixes
55.6.3Yes
3.103.10.1.2Ended 27 Nov 2025
4 (A new era)4.9.7Until 28 Nov 2026
3.9 (Brookesia)3.9.8.3Ended 27 Nov 2025
3.8 (Rhampholeon)3.8.4.4Ended 16 Jan 2025
3.7 (Kinyongia)3.7.5.5Ended 5 Oct 2024

From endoflife.date.

References