From MediaWiki.org
Jump to navigation Jump to search
Other languages:
Bahasa Indonesia • ‎English • ‎español • ‎русский • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation Media
Description Serves SVG images directly to clients
Author(s) alistair3149talk
Latest version 1.3.1 (2019-12-13)
Compatibility policy master
MediaWiki 1.31+
Database changes No
License GNU General Public License 3.0
Translate the NativeSvgHandler extension if it is available at translatewiki.net
Check usage and version matrix.

The NativeSvgHandler extension allows SVG files to be served directly to clients for client-side rendering.


  • Download and place the file(s) in a directory called NativeSvgHandler in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NativeSvgHandler' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


NativeSvgHandler serves SVG directly to clients through image tags, which is not vulnerable to XSS attack. XSS attacks are only relevant when it is accessed directly through original file on the file page, which is neither in the scope nor in control of this extension.