Loading...
Skip to main content

CVE-2026-61825 — Vulnerability in code16/sharp — CVE Details

HIGH

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

Published September 25, 2026Updated September 25, 2026Source: osv

Summary

### 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)

Advisory Timeline

  • First published September 25, 2026 (17 days ago).
  • Last revised September 25, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update code16/sharp to 9.22.5 or later
composer require "code16/sharp:^9.22.5"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
code16/sharp
packagist
7.0.0-alpha.1, 7.27.0, 7.7.2, v4.0-BETA1 (+315 more)9.22.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-61825?
code16/sharp has a stored XSS via data-html-content Sanitizer Bypass This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
How do I check if my project is affected by CVE-2026-61825?
CVE-2026-61825 affects code16/sharp. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61825 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.7

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-vj3q-vp3g-j9c8

Related CVEs

  • CVE-2026-56737
    HIGH

    phpMyFAQ's two-factor authentication login bypasses the password factor

  • CVE-2026-33686
    HIGH

    Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil

  • CVE-2026-33687
    HIGH

    Sharp has Unrestricted File Upload via Client-Controlled Validation Rules

  • CVE-2026-65954
    HIGH

    PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies