{
    "title": "SVG Support",
    "seo_title": "SVG Support: review, safe settings and limitations",
    "h1": "SVG Support",
    "description": "SVG Support for WordPress: sanitized SVG uploads, inline rendering, strengths, limitations, safe settings and patched flaws, to decide and set it up well.",
    "lead": "SVG Support lets you upload SVG files to the WordPress Media Library, sanitizes them and can render them inline so you can style them with CSS. Our take, its limitations, the settings that keep uploads safe and the patched flaws worth knowing.",
    "language": "en",
    "locale": "en-US",
    "type": "plugin-sheet",
    "url": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/",
    "canonical": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/",
    "markdown": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/index.md",
    "json": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/index.json",
    "published": "2026-11-04T08:00:00+00:00",
    "modified": "2026-11-22T12:45:44+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/",
            "markdown": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/index.md",
            "json": "https://www.wp-feint.com/features/camouflaged-plugins/svg-support/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/svg-support/",
            "markdown": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/svg-support/index.md",
            "json": "https://www.wp-feint.com/fr/fonctionnalites/extensions-camouflees/svg-support/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/svg-support/",
            "markdown": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/svg-support/index.md",
            "json": "https://www.wp-feint.com/es/funcionalidades/plugins-camuflados/svg-support/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/svg-support/",
            "markdown": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/svg-support/index.md",
            "json": "https://www.wp-feint.com/de/funktionen/getarnte-plugins/svg-support/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/svg-support/",
            "markdown": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/svg-support/index.md",
            "json": "https://www.wp-feint.com/it/funzionalita/plugin-camuffati/svg-support/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/svg-support/",
            "markdown": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/svg-support/index.md",
            "json": "https://www.wp-feint.com/pt/recursos/plugins-wordpress-camuflados/svg-support/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "SVG Support",
            "url": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/svg-support/",
            "markdown": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/svg-support/index.md",
            "json": "https://www.wp-feint.com/nl/functies/gecamoufleerde-plugins/svg-support/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "SVG Support"
        },
        {
            "level": 2,
            "text": "What SVG Support does on your site"
        },
        {
            "level": 2,
            "text": "Which sites SVG Support suits"
        },
        {
            "level": 2,
            "text": "SVG Support strengths and limitations"
        },
        {
            "level": 3,
            "text": "Strengths"
        },
        {
            "level": 3,
            "text": "Limitations"
        },
        {
            "level": 2,
            "text": "The SVG Support settings we recommend"
        },
        {
            "level": 2,
            "text": "SVG Support security: a sanitizer under scrutiny"
        },
        {
            "level": 2,
            "text": "SVG Support FAQ",
            "id": "faq"
        }
    ],
    "body": "## The essentials\n\n- Best for showing SVG logos and icons, and animating them in CSS with Advanced Mode’s inline rendering.\n- Main caveat: several XSS flaws bypassed the sanitizer, so keep uploads limited to admins.\n- Free with no paid version; a Pro edition is announced, with no price or date yet.\n\n## What SVG Support does on your site\n\nOut of the box, WordPress won’t accept SVG files in the Media Library, because an SVG is an XML document that can carry script. SVG Support lifts that block: your logos, icons and vector illustrations upload like any other image and work in Image and Cover blocks, featured images and widgets. Every file is sanitized on upload by the enshrined/svg-sanitize library, which strips dangerous tags and attributes, and by default only administrators can upload SVGs.\n\n“Advanced Mode,” off by default, adds inline rendering: a small script swaps any `<img>` tag carrying the `style-svg` class for the SVG markup itself. You can then recolor or animate each element inside the drawing with CSS or JavaScript. In this mode, the SVG injected into the page is run through DOMPurify in the browser, and a “Render this SVG inline (advanced)” checkbox appears under the featured image.\n\nThe plugin has been built for more than ten years by a single developer, Benbodhi, who answers the wordpress.org support forum himself. It is completely free: an SVG Support Pro edition (visual animation and recoloring) is announced on svg.support, with only a waitlist and no published price.\n\n![Diagram: SVG Support works on visitors and bots, database and files, external services. Public traces: folder name (hidden with Pro); tag IDs (hidden with Pro).](https://www.wp-feint.com/media/wpm-sheets/svg-support/diagram-en.svg?v=0346b9e5)\n\n## Which sites SVG Support suits\n\nSVG Support covers two quite different needs, and it helps to know which one is yours before installing it:\n\n- **Sites that just want to display SVGs**: a crisp logo on Retina screens and lightweight icons, with no special setup.\n- **Front-end developers**: inline rendering lets you change an icon’s color on hover or animate a path in CSS without pasting SVG code into every page by hand.\n- **Multisite networks**: SVG uploads work on subsites, including for the network administrator.\n\nIt is the wrong pick if dozens of authors or clients need to upload SVGs: each file is still an active document, and opening uploads to less trusted roles raises the risk of a [cross-site scripting flaw](https://www.wp-feint.com/glossary/xss/), sanitization or not. If all you need is uploading, without inline rendering, [Safe SVG](https://www.wp-feint.com/features/camouflaged-plugins/safe-svg/) by 10up is the other widely installed plugin in this niche.\n\n## SVG Support strengths and limitations\n\n### Strengths\n\n- **Cautious defaults.** Uploads limited to administrators, every file sanitized for every role, and browser-side sanitization turned on.\n- **Built-in inline rendering.** One class on an Image or Cover block is enough to style and animate the inside of the SVG.\n- **Every upload path covered.** Since the 2.6.x releases, the Media Library, REST API, XML-RPC, WP-CLI and importers all go through the same sanitizer.\n- **Nothing on the front end by default.** Without Advanced Mode, no script loads for visitors.\n\n### Limitations\n\n- **A record of bypasses.** Several published XSS flaws got around the SVG sanitizer, so updates should never wait.\n- **One maintainer.** Support and fixes rest on a single person, with no paid support plan.\n- **Patchy translations.** Several languages, French among them, do not cover the settings screen rebuilt in 2.6.0.\n- **Inline rendering needs JavaScript.** Images are swapped in the browser, using jQuery unless you pick the dependency-free script.\n\n## The SVG Support settings we recommend\n\nThe screen lives under Settings > SVG Support and saves each change automatically.\n\n| Setting | Recommended value | Why |\n| --- | --- | --- |\n| **Restrict SVG uploads to**  Settings > SVG Support > General | Administrator only (default) | The published XSS flaws required a less trusted role, such as Author, to have been granted SVG uploads. |\n| **Do not sanitize for these roles**  Same screen | Empty (default) | Every uploaded file is then sanitized, administrators’ files included. |\n| **Sanitize SVG on front-end**  Same screen | On (default) | With Advanced Mode, the SVG injected into the page goes through DOMPurify before it is displayed. |\n| **Minify SVG**  Same screen | On if file size matters, after a test | The stored file is rewritten without whitespace or comments; check how a few files display. |\n| **Advanced Mode**  Settings > SVG Support | Off if you don’t animate or style your SVGs | No script then loads on the public site. |\n| **Output JS in footer**  Advanced Mode | On | The inline-rendering script moves to the bottom of the page; your theme must call `wp_footer()`. |\n| **Use vanilla JS**  Advanced Mode | On if your theme doesn’t load jQuery | Avoids loading jQuery just for inline rendering. |\n| **Force inline SVG**  Advanced Mode, Legacy settings | Off (default) | The plugin itself labels it “Use with caution”: every SVG on the site would be rendered inline. |\n\n- Upload a test SVG to the Media Library as an administrator: its thumbnail and dimensions should show.\n- Try the same upload with an Author account: it should be refused as long as that role isn’t allowed.\n- With Advanced Mode on, add the `style-svg` class to an Image block and view the page source: an `<svg>` tag should replace the `<img>`.\n- In Plugins, confirm you run at least version 2.6.3, which closes the latest known bypasses.\n\n## SVG Support security: a sanitizer under scrutiny\n\nThe published flaws below are rated medium, and most assume a non-administrator role was allowed to upload SVGs. They show why keeping that right for administrators remains the most useful setting:\n\n- **CVE-2023-6708, versions up to 2.5.7**: stored XSS through an SVG uploaded by an authorized author, even with sanitization on (CVSS 5.4).\n- **CVE-2024-10222, versions up to 2.5.10**: another bypass of upload sanitization, stored XSS exploitable by an authorized author (CVSS 6.4).\n- **CVE-2026-48973, fixed in 2.5.15**: missing access control on the inline featured image option (CVSS 4.3).\n- **CVE-2021-24686, fixed in 2.3.20**: XSS through the CSS target class setting, exploitable by an administrator even without the `unfiltered_html` capability.\n\nVersions 2.5.17 through 2.6.3 closed further bypasses via .svgz files, XML-RPC uploads and SVG animations in Safari, and updated the sanitizer library. So turn on automatic updates for the plugin (see our guide to automatic plugin updates), and read our article on XSS flaws in WordPress to understand the risk. WP Feint strips SVG Support’s traces from your pages (the plugin folder path and the `bodhi` script IDs), which makes it harder for bots targeting its flaws to spot, without replacing updates.\n\n## SVG Support FAQ\n\n**Why doesn’t my SVG show up after uploading it?**\n\nUsually the file has no usable dimensions: give it a width and height in CSS, as the developer recommends. The “Load front-end CSS” setting also adds a small stylesheet that helps display SVGs in some themes.\n\n**How do I animate or recolor an SVG with SVG Support?**\n\nTurn on Advanced Mode, add the `style-svg` class to the image, then target the SVG’s inner elements in CSS. To reach one specific element, give it a class inside the SVG file with a code editor.\n\n**Is it safe to let authors upload SVGs?**\n\nSanitization lowers the risk without removing it: several flaws have bypassed it in the past. Only open uploads to roles you trust, keep sanitization on for everyone and keep the plugin up to date.\n\n**Is there a paid version of SVG Support?**\n\nNot yet. SVG Support Pro is announced on the plugin’s website with a waitlist, but no price or date. The developer states that the free plugin will stay free.\n\n## Key facts\n\n- Category: Images and sliders\n- Vendor: Benbodhi\n- Price: Free, with no paid version (a Pro edition is announced, with no price)\n- Active installations (wordpress.org): 1 000 000+\n- Version: 2.6.3\n- Official page: https://wordpress.org/plugins/svg-support/\n\n## What WP Feint hides\n\n- Handled by the free plugin Feint Security\n- With Pro: folder name, tag IDs",
    "catalog": "svg-support",
    "essentials": [
        "Best for showing SVG logos and icons, and animating them in CSS with Advanced Mode’s inline rendering.",
        "Main caveat: several XSS flaws bypassed the sanitizer, so keep uploads limited to admins.",
        "Free with no paid version; a Pro edition is announced, with no price or date yet."
    ],
    "format": "application/json"
}