Loading advisory.
Loading advisory.
code16 Sharp vulnerable to stored XSS via iframe srcdoc Attribute
A Stored Cross-Site Scripting (XSS) vulnerability exists in the rich text editor due to improper sanitization of the srcdoc attribute on <iframe> elements.
Published 2026-09-24 18:31 UTC · Modified 2026-09-28 14:27 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| code16/sharp | Packagist | < 9.22.5 versions 7.0.0-alpha.1, 7.27.0, 7.7.2, v4.0-BETA1, v4.0-BETA2, v4.0-BETA3, v4.0-BETA4, v4.0-BETA5, v4.0-BETA6, v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.16, v4.0.17, v4.0.18 and 299 more | 9.22.5 | composer require 'code16/sharp:>=9.22.5' |
A Stored Cross-Site Scripting (XSS) vulnerability exists in the rich text editor due to improper sanitization of the srcdoc attribute on <iframe> elements.
While the underlying Symfony HtmlSanitizer correctly HTML-encodes special characters inside the attribute value (e.g., converting <script> to <script>), the HTML specification mandates that browsers automatically decode HTML entities inside attribute values before processing them. As a result, any encoded JavaScript inside a srcdoc attribute is evaluated and executed as live HTML/JS in the context of the iframe when the page is rendered.
An attacker with permissions to edit an Editor field can inject malicious scripts to target other users viewing the content. Potential impacts include:
Session Hijacking (stealing admin session cookies via document.cookie)
Account Takeover & Privilege Escalation (e.g., a low-privileged editor triggering actions as an Administrator)
Admin panel data theft
The vulnerability has been patched in version v9.22.5.
The fix explicitly removes srcdoc from the list of allowed iframe attributes in src/Utils/Sanitization/FormatsSanitizedValue.php.
Users who cannot upgrade immediately can manually sanitize all content of editor fields to strip srcdoc attributes.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.002 | v2026.06.15 |