GitHub Advisoryadvisory · Packagist

GHSA-vj3q-vp3g-j9c8 code16/sharp has a stored XSS via data-html-content Sanitizer Bypass

HIGH Published 2026-09-25 Modified 2026-09-25 Official page ↗
Aliases
CVE-2026-61825
Ecosystem
Packagist
Packages
code16/sharp
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Weaknesses
CWE-79
Reviewed
2026-09-25

Affected packages

• Packagist code16/sharp: < 9.22.5 → fixed in 9.22.5

Description

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::RAW_HTML` in the toolbar to keep this behavior. When using the `RAW_HTML` 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)

Related

Alias · CVE (1)

  • CVE-2026-61825 code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References