Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 19.27 KB
MD5: db5a0971f5bfe7dbc000743a9aeb255b
SHA-1: 60dfd700621e6433a69deff80f789ab2ac08558a
SHA-256: b34a34ba9ddb5f07bdab275bae7287189af62d9dd6563f8af1b96c79d30bd44b
Download zip 27.31 KB
MD5: 11417931a197d62dbec1be0a7a08da5e
SHA-1: ea53ec2bc32d62e75bcd80370c4271d162f6c5da
SHA-256: f3744368134647ece642f6bb2833ffc971323905e760e1858dbe2d492679722c

Release notes

Security update: svg_image now requires enshrined/svg-sanitize ^1.0, the library that sanitizes inline SVGs. Every 0.x release, up to and including 0.22.0, is covered by security advisories published on 8 October 2026 (a stored XSS through DTD entities and two denial-of-service issues), so Composer refuses to install them and composer require drupal/svg_image failed on a fresh site. Version 1.0.0 fixes them without changing the API svg_image uses.

Before updating: make sure nothing else in your project pins enshrined/svg-sanitize to 0.x, otherwise Composer cannot resolve the update.

This release also makes the responsive image formatter's $logger property protected, like the one in the standard SVG formatter, so subclasses can set it and it survives serialization.

Contributors (5)

andre.bonon, jurgenhaas, mably, mrshowerman, murrow

Changelog

Issues: 2 issues resolved.

Changes since 3.2.4 (compare):

Bug

  • #3629505 enshrined/svg-sanitize >=0.15 <1.0 has security advisories

Task

  • #3562651 Make logger in responsive image formatter protected
Created by: mably
Created on: 9 Oct 2026 at 07:42 UTC
Last updated: 9 Oct 2026 at 07:42 UTC
Bug fixes

Other releases