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

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-09-24T18:31:18.190Z
- Modified: 2026-09-30T19:57:08.043Z
- Also known as: GHSA-qxg3-46rw-79j8
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- code16 sharp: < 9.22.5
- code16/sharp (Packagist): before 9.22.5

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/code16/sharp/security/advisories/GHSA-qxg3-46rw-79j8> (web)
- <https://github.com/code16/sharp/commit/ec509a22c808a5bd9dfad6a0a85c92ce6f411e21> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61823> (advisory)
- <https://github.com/code16/sharp> (package)

## Sources

- CVE List: [CVE-2026-61823](https://www.cve.org/CVERecord?id=CVE-2026-61823), CVE Terms of Use, modified 2026-09-28
- GitHub Advisory Database: [GHSA-qxg3-46rw-79j8](https://github.com/advisories/GHSA-qxg3-46rw-79j8), CC-BY-4.0, modified 2026-09-25
- NVD: [CVE-2026-61823](https://nvd.nist.gov/vuln/detail/CVE-2026-61823), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-61823 · Whole record: https://cve.day/CVE-2026-61823.json · Rebuilt by cve.day 2026-11-25T22:59:40.893Z
