CVE-2025-61457
PHP vulnerability analysis and mitigation

Overview

code16 Sharp v9.6.6 is vulnerable to Cross Site Scripting (XSS) in src/Form/Fields/SharpFormUploadField.php. The vulnerability was discovered and disclosed on October 21, 2025. The issue affects the file upload functionality in the Sharp framework (NVD).

Technical details

The vulnerability is a Cross-Site Scripting (XSS) issue that occurs in the file upload functionality, specifically in the SharpFormUploadField.php component. The CVSS v3.1 base score is 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. This indicates that the vulnerability is network accessible, requires low attack complexity, needs no privileges, requires user interaction, has changed scope, and can impact both confidentiality and integrity at a low level, with no impact on availability (NVD, AttackerKB).

Impact

The vulnerability allows attackers to execute arbitrary scripts in victims' browsers through malicious file uploads. This can lead to theft of sensitive information, session hijacking, or other client-side attacks. The impact is considered moderate due to the requirement for user interaction and the limited scope of the potential damage (AttackerKB).

Mitigation and workarounds

The vulnerability has been patched in Sharp v9.7.0. The fix includes implementing SVG image sanitization by default before saving to prevent XSS, with an option to opt-out using setImageSanitizeSvg(false). Users are strongly recommended to upgrade to version 9.7.0 or later (Sharp Release).

Community reactions

The vulnerability was initially reported by security researcher 'chimmeee' through GitHub's security reporting mechanism. The Sharp development team responded promptly by implementing sanitization features in the next release (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management