CVE-2020-11070: Cross-Site Scripting in SVG Sanitizer

t3g/svg-sanitizer Updated 02 Oct 2025

Summary

13/05/2020
Yes i
Moderate
5.4

CVE-2020-11070: Cross-Site Scripting in SVG Sanitizer. Affects t3g/svg-sanitizer versions < 1.0.3. Fixed in 1.0.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The 't3g/svg-sanitizer' package is an open-source TYPO3 extension available on Packagist. It provides a sanitizer for SVG markup, aiming to prevent cross-site scripting (XSS) attacks by sanitizing SVG content. SVG (Scalable Vector Graphics) is an XML-based vector image format widely used on the web. This package is designed to ensure that SVG markup is properly processed and sanitized before being rendered in browsers.

Vulnerability Detail

This vulnerability (CVE-2020-11070) arises from a flaw in the SVG Sanitizer extension. When encountering slightly invalid or incomplete SVG markup, the sanitizer fails to correctly process and sanitize it. As a result, even though the markup is not valid, it is still evaluated by browsers, leading to a cross-site scripting vulnerability. An attacker could exploit this vulnerability to inject malicious scripts into web pages, potentially compromising user data or performing unauthorized actions on behalf of the user.

How To Fix

Minimum fixed version

1.0.3

This is the first release that contains the fix.

composer require t3g/svg-sanitizer:1.0.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The 't3g/svg-sanitizer' TYPO3 extension versions prior to 1.0.3 are vulnerable to a cross-site scripting (XSS) attack due to improper sanitization of SVG markup. To mitigate this vulnerability, it is crucial to update the extension to version 1.0.3. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for t3g/svg-sanitizer →

Share this vulnerability

FAQ

The vulnerability allows an attacker to inject malicious scripts into web pages, potentially leading to cross-site scripting attacks. This can result in unauthorized access to user data, session hijacking, defacement of websites, or other malicious activities.

Users of the 't3g/svg-sanitizer' TYPO3 extension versions prior to 1.0.3 are affected by this vulnerability. TYPO3 websites that utilize this extension and process user-generated SVG content are at risk.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, given the nature of cross-site scripting vulnerabilities, it is important to address and fix this issue promptly to mitigate potential risks.

No specific workaround is available for this vulnerability. It is recommended to update the 't3g/svg-sanitizer' extension to the latest version (1.0.3) as soon as possible.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the composer.lock file, without requiring access to the code or installation.

How To Fix

Minimum fixed version

1.0.3

This is the first release that contains the fix.

composer require t3g/svg-sanitizer:1.0.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback