<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup" -->

---
title: CVE-2026-133777 XSS in symfony/ux-icons via SVG Content...
description: Symfony UX Icons 2.36.1 to 2.36.2 and 3.2.0 to 3.8.0 carry an incomplete fix for an earlier XSS flaw, CVE-2026-55877. The sanitizer only validated icon SVG as...
canonical: https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CVE-2026-133777 XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CVE-2026-55877 (Symfony Blog) | daily.dev
og:description: Symfony UX Icons 2.36.1 to 2.36.2 and 3.2.0 to 3.8.0 carry an incomplete fix for an earlier XSS flaw, CVE-2026-55877. The sanitizer only validated icon SVG as...
og:url: https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup
og:image: https://api.daily.dev/og/posts/HtF8OFwUp.png
og:image:alt: CVE-2026-133777 XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CVE-2026-55877 (Symfony Blog)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CVE-2026-133777 XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CVE-2026-55877 (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 2 min read · 0 upvotes · 0 comments

## Summary

Symfony UX Icons 2.36.1 to 2.36.2 and 3.2.0 to 3.8.0 carry an incomplete fix for an earlier XSS flaw, CVE-2026-55877. The sanitizer only validated icon SVG as SVG, but browsers switch to HTML parsing once they hit tags like `<p>`, `<img>` or `<meta>`, letting attacker-controlled icon markup become live HTML. One example uses a `<p/>` tag followed by a comment that ends a `<style>` element early and adds an `<img onerror>` handler. Comments were also left intact even though browsers can end them early. Apps are exposed when an attacker can influence icon SVG, such as local icon files or Iconify API responses. The fix, in versions 2.36.3 and 3.8.1, strips comments and HTML-switching elements and keeps only text in `<title>` and `<desc>`. Nicolas Grekas reported the issue and provided the fix.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix-for-cve-2026-55877>

## Questions this post answers

### Which versions of symfony/ux-icons are vulnerable to the new XSS issue CVE-2026-133777?

Symfony UX Icons versions 2.36.1 up to but not including 2.36.3, and 3.2.0 up to but not including 3.8.1, are affected. The vulnerability stems from an incomplete fix for an earlier flaw, CVE-2026-55877. It is fixed in versions 2.36.3 and 3.8.1, which developers should upgrade to immediately.

_daily.dev surfaces advisories like this so Symfony teams patch before an exploit lands._

### Why can a sanitized inline SVG icon still execute an XSS payload in the browser?

Browsers parse an inline `<svg>` element using SVG rules only until they hit a start tag like `<p>`, `<img>`, or `<meta>`, after which they switch to parsing the rest as HTML, including inside `<title>` and `<desc>` elements. A sanitizer that validates content only as SVG misses malicious markup designed to trigger this HTML fallback, such as `<p/><style><!--</style><img src=1 onerror=alert(1)>--></style>`.

_Understanding this parsing quirk helps developers vet sanitizers before trusting third-party SVG content._

### How does the Symfony UX Icons patch prevent SVG-to-HTML parsing XSS attacks?

The updated sanitizer removes comments and any elements that cause browsers to switch from SVG to HTML parsing, keeping only the plain text content of `<title>` and `<desc>` elements. It also ensures markup inside CDATA sections and attribute values cannot prematurely end a `<noscript>` element wrapped around the icon.

_Developers hardening SVG sanitization logic can track fixes like this one on daily.dev._

## Similar posts on daily.dev

- [CVE-2026-133776 XSS in symfony/ux-icons via Text That Sanitized Icons Contain Unescaped: Incomplete Fix for CVE-2026-55877 \(Symfony Blog\)](https://daily.dev/posts/cve-2026-133776-xss-in-symfony-ux-icons-via-text-that-sanitized-icons-contain-unescaped-incomplete--di8qozddb) · Symfony · 0 upvotes · 0 comments
- [CVE-2026-133775 XSS in symfony/ux-icons via Scripts Nested in SVG Style Elements: Incomplete Fix for CVE-2026-55877 \(Symfony Blog\)](https://daily.dev/posts/cve-2026-133775-xss-in-symfony-ux-icons-via-scripts-nested-in-svg-style-elements-incomplete-fix-for-buqun45wx) · Symfony · 0 upvotes · 0 comments
- [CVE-2026-55877: XSS in symfony/ux-icons via unsanitized SVG content in local files and Iconify on-demand responses \(Symfony Blog\)](https://daily.dev/posts/cve-2026-55877-xss-in-symfony-ux-icons-via-unsanitized-svg-content-in-local-files-and-iconify-on-de-hrpqqcxja) · Symfony · 0 upvotes · 0 comments
- [Novel clickjacking attack relies on CSS and SVG](https://daily.dev/posts/novel-clickjacking-attack-relies-on-css-and-svg-609qdgjok) · The Register · 1 upvotes · 0 comments
- [The woes of sanitizing SVGs](https://daily.dev/posts/the-woes-of-sanitizing-svgs-pwfqj7jvs) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CVE-2026-133777 XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CVE-2026-55877 (Symfony Blog)","url":"https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup"},"datePublished":"2026-11-24T08:26:05.881Z","dateModified":"2026-11-24T08:26:35.079Z","description":"Symfony UX Icons 2.36.1 to 2.36.2 and 3.2.0 to 3.8.0 carry an incomplete fix for an earlier XSS flaw, CVE-2026-55877. The sanitizer only validated icon SVG as...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Symfony","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Symfony","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cc07051b7112472f9729e73c14660a64","url":"https://daily.dev/sources/symfony"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,php,symfony,svg","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Symfony","item":"https://daily.dev/sources/symfony"},{"@type":"ListItem","position":3,"name":"CVE-2026-133777 XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CVE-2026-55877 (Symfony Blog)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cve-2026-133777-xss-in-symfony-ux-icons-via-svg-content-that-browsers-parse-as-html-incomplete-fix--htf8ofwup#faq","mainEntity":[{"@type":"Question","name":"Which versions of symfony/ux-icons are vulnerable to the new XSS issue CVE-2026-133777?","acceptedAnswer":{"@type":"Answer","text":"Symfony UX Icons versions 2.36.1 up to but not including 2.36.3, and 3.2.0 up to but not including 3.8.1, are affected. The vulnerability stems from an incomplete fix for an earlier flaw, CVE-2026-55877. It is fixed in versions 2.36.3 and 3.8.1, which developers should upgrade to immediately. daily.dev surfaces advisories like this so Symfony teams patch before an exploit lands."}},{"@type":"Question","name":"Why can a sanitized inline SVG icon still execute an XSS payload in the browser?","acceptedAnswer":{"@type":"Answer","text":"Browsers parse an inline `\u003csvg\u003e` element using SVG rules only until they hit a start tag like `\u003cp\u003e`, `\u003cimg\u003e`, or `\u003cmeta\u003e`, after which they switch to parsing the rest as HTML, including inside `\u003ctitle\u003e` and `\u003cdesc\u003e` elements. A sanitizer that validates content only as SVG misses malicious markup designed to trigger this HTML fallback, such as `\u003cp/\u003e\u003cstyle\u003e\u003c!--\u003c/style\u003e\u003cimg src=1 onerror=alert(1)\u003e--\u003e\u003c/style\u003e`. Understanding this parsing quirk helps developers vet sanitizers before trusting third-party SVG content."}},{"@type":"Question","name":"How does the Symfony UX Icons patch prevent SVG-to-HTML parsing XSS attacks?","acceptedAnswer":{"@type":"Answer","text":"The updated sanitizer removes comments and any elements that cause browsers to switch from SVG to HTML parsing, keeping only the plain text content of `\u003ctitle\u003e` and `\u003cdesc\u003e` elements. It also ensures markup inside CDATA sections and attribute values cannot prematurely end a `\u003cnoscript\u003e` element wrapped around the icon. Developers hardening SVG sanitization logic can track fixes like this one on daily.dev."}}]}
```

