Skip to content

fix: compatibility with svg-sanitize - #31

Merged
shavonn merged 1 commit into
mainfrom
fix/svg-sanitize-advisories
Oct 8, 2026
Merged

shavonn merged 1 commit into
mainfrom
fix/svg-sanitize-advisories

Conversation

@shavonn

@shavonn shavonn commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Require enshrined/svg-sanitize ^1.0 instead of ^0.22.

All versions up to and including 0.22.0 are affected by three advisories published 2026-10-08:

Composer now blocks 0.22.0. Every release of this package that supports Laravel 13 (v1.1.0–v1.6.0) requires ^0.22, so on Laravel 13 no version can be
installed at all and composer update fails in consuming apps.

0.x is dropped rather than widened to ^0.22|^1.0, because every 0.x release is affected.

Compatibility

The package only uses enshrined\svgSanitize\Sanitizer (IconCompiler), and it behaves the same in 1.0.0. 1.0.0 requires PHP ^7.1 || ^8.0 and
ext-dom/ext-libxml, which this package's PHP ^8.3 requirement already covers.

Testing

  • Full suite passes against 1.0.0 (219 tests), including the IconCompiler sanitizer tests (script tags stripped, invalid SVG rejected)
  • PHPStan: no errors

@shavonn
shavonn merged commit dcc12ea into main Oct 8, 2026
20 checks passed
@shavonn
shavonn deleted the fix/svg-sanitize-advisories branch October 8, 2026 22:09
@github-actions github-actions Bot mentioned this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant