BuzzPHP
LightDarkSystem

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

High severity. Published 25 September 2026. Update code16/sharp to 9.22.5 or later: composer update code16/sharp.

Which versions are affected?

PackageAffected versionsFixed in
code16/sharp (opens in a new tab)< 9.22.59.22.5

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show code16/sharp
composer audit

Advisory details

SeverityHighCVSS 8.7
Published
Updated
CVECVE-2026-61825 (opens in a new tab)
GHSAGHSA-vj3q-vp3g-j9c8 (opens in a new tab)
WeaknessCWE-79

What the advisory says

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)

Source: GHSA-vj3q-vp3g-j9c8 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories