Description
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.
Published: 2026-09-24
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting (XSS)
Action: Immediate Patch
AI Analysis

Impact

A stored cross‑site scripting vulnerability exists in the SharpEditorFormField component of the code16 Sharp framework. Content that contains the attacker‑controlled data-html‑content attribute bypasses the normal HTML sanitization, allowing the injection of executable markup. When a victim user later views the stored content, the injected code can execute in their browser, potentially compromising their session, harvesting credentials, or defacing the site. The weakness is a classic input validation flaw identified as CWE‑79.

Affected Systems

The vulnerability affects all installations of code16:sharp prior to version 9.22.5. The vendor’s own release notes indicate that version 9.22.5 includes a fix. Applications that have intentionally enabled the RAW_HTML option in SharpFormEditorField must still perform their own sanitization to avoid this bypass. No other vendors or unrelated products are impacted.

Risk and Exploitability

The CVSS score of 8.7 marks this as a high‑severity issue, reflecting a wide impact on confidentiality and integrity for authenticated users who can submit or edit content. The EPSS score is not available, so the current probability of exploitation is unknown; however, the vulnerability can be abused by any user with write access to the editor field. The problem is not listed in the CISA KEV catalog, indicating no publicly confirmed exploits yet. Attackers could exploit it by submitting malicious content through the editor, optionally disclosing the flaw via public channels or internal reconnaissance. The primary vector is the web interface where the editor form field accepts input from users with sufficient privileges.

Generated by OpenCVE AI on September 25, 2026 at 05:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the code16 Sharp framework to version 9.22.5 or newer to apply the vendor patch
  • If an upgrade is not immediately possible, disable the RAW_HTML functionality in SharpFormEditorField to prevent the sanitization bypass from occurring
  • When allowing RAW_HTML, prepend a manual sanitization step using a robust library such as Symfony HtmlSanitizer before storage or rendering, ensuring all incoming content is cleansed

Generated by OpenCVE AI on September 25, 2026 at 05:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vj3q-vp3g-j9c8 code16/sharp has a stored XSS via data-html-content Sanitizer Bypass
History

Fri, 25 Sep 2026 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Code16
Code16 sharp
Vendors & Products Code16
Code16 sharp

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 18:45:00 +0000

Type Values Removed Values Added
Description 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.
Title code16/sharp has a stored XSS via data-html-content Sanitizer Bypass
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T18:53:39.208Z

Reserved: 2026-07-10T20:17:57.993Z

Link: CVE-2026-61825

cve-icon Vulnrichment

Updated: 2026-09-24T18:53:25.664Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T19:17:15.500

Modified: 2026-09-29T19:07:47.037

Link: CVE-2026-61825

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T07:45:18Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')