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 has been assigned identifier CVE-2025-61457. The issue affects the file upload functionality of the application. The vulnerability was discovered and reported by security researcher chimmee in July 2025 (MITRE).

Technical details

The vulnerability has been assessed with a CVSS v3.1 Base Score of 6.1 (MEDIUM) with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. This indicates the vulnerability is network exploitable, requires low attack complexity, needs no privileges, requires user interaction, has changed scope, and can impact confidentiality and integrity but not availability (CISA-ADP). The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

Impact

The Cross-Site Scripting vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to theft of sensitive information or session hijacking. The vulnerability affects both confidentiality and integrity of the system with low impact levels.

Mitigation and workarounds

The vulnerability has been fixed in Sharp v9.7.0. The fix includes sanitizing SVG images by default before saving to prevent XSS attacks. Users can opt-out of this protection using setImageSanitizeSvg(false). Additionally, HTML content is now sanitized by default before saving to the database (Sharp Release).

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-61457MEDIUM6.1
  • PHPPHP
  • code16/sharp
NoYesOct 21, 2025
CVE-2025-60790MEDIUM5.7
  • PHPPHP
  • processwire/processwire
NoNoOct 21, 2025
GHSA-m895-2hj3-8cg9MEDIUM5.3
  • PHPPHP
  • shopware/core
NoYesOct 21, 2025
GHSA-27c9-vp3w-6ww8MEDIUM4.9
  • PHPPHP
  • shopware/core
NoYesOct 21, 2025
GHSA-r2vg-hvjm-fg38MEDIUM4.3
  • PHPPHP
  • shopware/core
NoYesOct 21, 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