Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. code16/sharp
  4. ›
  5. CVE-2026-61823

CVE-2026-61823: code16 Sharp vulnerable to stored XSS via iframe srcdoc Attribute

September 25, 2026

A Stored Cross-Site Scripting (XSS) vulnerability exists in the rich text editor due to improper sanitization of the srcdoc attribute on elements.

While the underlying Symfony HtmlSanitizer correctly HTML-encodes special characters inside the attribute value (e.g., converting 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

References

  • github.com/advisories/GHSA-qxg3-46rw-79j8
  • github.com/code16/sharp/commit/ec509a22c808a5bd9dfad6a0a85c92ce6f411e21
  • github.com/code16/sharp/security/advisories/GHSA-qxg3-46rw-79j8
  • nvd.nist.gov/vuln/detail/CVE-2026-61823

Code Behaviors & Features

Detect and mitigate CVE-2026-61823 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.22.5

Fixed versions

  • 9.22.5

Solution

Upgrade to version 9.22.5 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/code16/sharp/CVE-2026-61823.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 26 Sep 2026 00:18:24 +0000.