Advisory

GHSA-vj3q-vp3g-j9c8

Also known as: CVE-2026-61825

Summary

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

Details

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)

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-09-25 15:00 UTC
Modified
2026-09-25 15:15 UTC

Affected packages and fixes

code16/sharp

Packagist · All systems

Affected

  • introduced 0, fixed 9.22.5 (ecosystem)

Fixed versions

9.22.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences