{"id":"CVE-2026-61825","aliases":["CVE-2026-61825","GHSA-vj3q-vp3g-j9c8"],"related":[],"kind":"vulnerability","state":"published","title":"code16/sharp has a stored XSS via data-html-content Sanitizer Bypass","summary":"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 `SharpEditorFormField`: attacker-controlled content bearing the `data-html-content` attribute can bypass HTML sanitization and preserve executable markup, which may execute when another user views the stored content. The vendor identifies version 9.22.5 as patched; applications that intentionally enable `SharpFormEditorField::RAW_HTML` must continue to sanitize editor content themselves. As a workaround, applications should sanitize all editor content before storing or rendering it, for example with Symfony HtmlSanitizer, and disable RAW_HTML functionality where it is not required.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 `SharpEditorFormField`: attacker-controlled content bearing the `data-html-content` attribute can bypass HTML sanitization and preserve executable markup, which may execute when another user views the stored content. The vendor identifies version 9.22.5 as patched; applications that intentionally enable `SharpFormEditorField::RAW_HTML` must continue to sanitize editor content themselves. As a workaround, applications should sanitize all editor content before storing or rendering it, for example with Symfony HtmlSanitizer, and disable RAW_HTML functionality where it is not required.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe vulnerability allows an attacker to bypass the HTML sanitizer by using the `data-html-content` attribute in the content of a `SharpEditorFormField`. \n\n### Patches\nThe 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**. \nVulnerability has been patched in version 9.22.5.\n\n### Workarounds\nSanitize every contents of editors manually (e.g. using Symfony/HtmlSanitizer)","format":"markdown","source":"ghsa"}],"published":"2026-09-24T18:27:32.284Z","modified":"2026-09-29T19:07:47.037Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 9.22.5","status":"affected"}],"vendor":"code16","product":"sharp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.22.5"}],"ecosystem":"Packagist","package":"code16/sharp","purl":"pkg:composer/code16/sharp","source":"ghsa"}],"references":[{"url":"https://github.com/code16/sharp/security/advisories/GHSA-vj3q-vp3g-j9c8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/code16/sharp/commit/ec509a22c808a5bd9dfad6a0a85c92ce6f411e21","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61825","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/code16/sharp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-24T18:53:19.093Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61825","url":"https://www.cve.org/CVERecord?id=CVE-2026-61825","licence":"CVE Terms of Use","modified":"2026-09-24T18:53:39.208Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vj3q-vp3g-j9c8","url":"https://github.com/advisories/GHSA-vj3q-vp3g-j9c8","licence":"CC-BY-4.0","modified":"2026-09-25T15:15:06.238Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61825","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61825","licence":"Public domain","modified":"2026-09-29T19:07:47.037Z"}],"updatedAt":"2026-11-25T22:59:40.893Z","epss":{"score":0.00389,"percentile":0.24686,"date":"2026-11-30T12:00:22.000Z"}}