Intel

AIKIDO-2026-29108

enshrined/svg-sanitize is vulnerable to Information Exposure

Information ExposureGHSA-qhmf-972w-m957 Published 3 days ago

35

Low Risk

This Affects:

PHPenshrined/svg-sanitize
0.0.1 - 0.22.0
Fixed in 1.0.0
Are you affected? Scan for Free

TL;DR

With removeRemoteReferences(true) enabled, several remote references slip past the filter: <style> element text is never inspected, bare remote href/src values and unquoted url(...) references are not matched, and CSS escapes hide @import/url() tokens. An embedded SVG can therefore load external resources or exfiltrate host-page data character by character through injected CSS. The fix inspects <style> text and style attributes, resolves CSS escapes and comments before matching, and detects bare, unquoted, and image-set() remote references.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you embed the sanitized SVG inline in an HTML page with remote-reference removal enabled.

Background info

enshrined/svg-sanitize is vulnerable to Information Exposure in versions 0.0.1 - 0.22.0.

How to fix this

Upgrade the enshrined/svg-sanitize library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform