# code16/sharp has a stored XSS via data-html-content Sanitizer Bypass

High severity, published 2026-09-25. Update code16/sharp to 9.22.5 or later: composer update code16/sharp.

Canonical URL: https://buzzphp.com/security/ghsa-vj3q-vp3g-j9c8 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.7) |
| Published | 2026-09-25 |
| Updated | 2026-09-25 |
| CVE | [CVE-2026-61825](https://nvd.nist.gov/vuln/detail/CVE-2026-61825) |
| GHSA | [GHSA-vj3q-vp3g-j9c8](https://github.com/advisories/GHSA-vj3q-vp3g-j9c8) |
| Weakness | CWE-79 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| code16/sharp | < 9.22.5 | 9.22.5 |

## What to do

Update code16/sharp to 9.22.5 or later: composer update code16/sharp.

Check which version you run with `composer show code16/sharp`, and every affected package with `composer audit`.

## About this advisory

Impact The vulnerability allows an attacker to bypass the HTML sanitizer by using the data-html-content attribute in the content of a SharpEditorFormField.

Patches The field must now explicitly configure SharpFormEditorField::RAWHTML in the toolbar to keep this behavior. When using the RAWHTML button, the application using code16/sharp must sanitize manually the content coming from the field. Vulnerability has been patched in version 9.22.5.

Workarounds Sanitize every contents of editors manually (e.g. using Symfony/HtmlSanitizer)

## Links

- [GHSA-vj3q-vp3g-j9c8 on GitHub](https://github.com/advisories/GHSA-vj3q-vp3g-j9c8)
- [CVE-2026-61825 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-61825)
- [All Composer security advisories](https://buzzphp.com/security)
