Repository navigation
chore(deps): bump enshrined/svg-sanitize to 1.0 - #14285
Conversation
0.22.0 and earlier are covered by GHSA-9rjx-3jch-6vjf, GHSA-m9xh-6747-9r6f and GHSA-v383-3rw5-q8rf, which fail `composer audit` downstream. 1.0.0 is a semver-only major with the same Sanitizer API, and carries the href cleaning fixes.
|
Review complete. No issues found — approved ✅. This PR is a single dependency bump of
Reviewed commit: f27659d |
🟢 Tier S · Ready to merge
Updates the
📂 Walkthrough · 2
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 32 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
What does this PR do?
Bumps
enshrined/svg-sanitizefrom0.22.*to1.0.*.Three advisories published on 2026-10-08 cover
<= 0.22.0: GHSA-9rjx-3jch-6vjf, GHSA-m9xh-6747-9r6f, GHSA-v383-3rw5-q8rf. Downstream builds that requireappwrite/server-cecannot move past the0.22.*pin, so theircomposer auditfails until this lands.The library is used once, in
Avatars/Http/Favicon/Get.php, to clean SVG favicons fetched from arbitrary sites. 1.0.0 is a semver-only major: sameSanitizer,minify()andsanitize()API, plus the href cleaning fixes (case-sensitivehref,hrefalongsidexlink:href). The lock diff is this package only.Test Plan
composer update enshrined/svg-sanitize -Wchanges only this package;composer auditreports no advisories.minify(true),sanitize()):<script>,onloadandjavascript:hrefs (includingHREF) are stripped; a safexlink:hrefis kept.false, which the endpoint maps toAVATAR_SVG_SANITIZATION_FAILED.Related PRs and Issues
composer auditin appwrite-labs/cloud (appwrite-labs/cloud#6412 andmain).Checklist