code16 Sharp vulnerable to stored XSS via iframe srcdoc Attribute
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. Versions before 9.22.5 contain a stored cross-site scripting vulnerability in the rich-text editor because the HTML sanitizer permits the `srcdoc` attribute on iframe elements. Although markup inside `srcdoc` is HTML-encoded during sanitization, browsers decode attribute entities before interpreting the iframe document, allowing an authenticated user with permission to edit an Editor field to store executable JavaScript that runs when another user views the content. Successful exploitation can result in session hijacking, unauthorized actions, account takeover, privilege escalation, or disclosure of administrative data. Version 9.22.5 patches the vulnerability by removing `srcdoc` from the permitted iframe attributes. As a workaround, applications that cannot upgrade should manually sanitize all Editor field content and remove every iframe `srcdoc` attribute before storing or rendering it.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| code16 | sharp | before 9.22.5 | 9.22.5 | Patch available | CNA |
| — | code16/sharp (Packagist) | before 9.22.5 | 9.22.5 | Patch available | GHSA-qxg3-46rw-79j8 |
- sharp Vendorcode16 Affected before 9.22.5 Fixed in 9.22.5 Patch available CNA
- code16/sharp (Packagist) Vendor— Affected before 9.22.5 Fixed in 9.22.5 Patch available GHSA-qxg3-46rw-79j8
Remediation
- Fix · CNA sharp (code16) Fixed in 9.22.5
- Fix · GHSA-qxg3-46rw-79j8 code16/sharp (Packagist) Fixed in 9.22.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61823
- 2026-10-03 Alias added: GHSA-qxg3-46rw-79j8
References
More code16 vulnerabilities
- TI-2026-26067 Sharp has Unrestricted File Upload via Client-Controlled Validation Rules CVSS 3.1HIGH 8.8
- TI-2026-26066 Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil CVSS 3.1HIGH 8.8
- TI-2026-44250 code16/sharp has a stored XSS via data-html-content Sanitizer Bypass CVSS 3.1HIGH 8.7
- TI-2026-32583 Authenticated Sharp users can download unrelated Laravel Storage objects through the generic download endpoint CVSS 3.1HIGH 7.7
- TI-2025-38981 Sharp user-provided input can be evaluated in a SharpShowTextField with Vue template syntax CVSS 3.1MEDIUM 5.4
- TI-2026-38678 Sharp: Missing Authorization Check in Quick Creation Command Endpoints CVSS 3.1MEDIUM 4.3
Sources
- CVE-2026-61823 · CVE Program
- CVE-2026-61823 · NVD
- FIRST EPSS
- GHSA-qxg3-46rw-79j8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences