Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-62798: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in code16 sharp

0
Medium
VulnerabilityCVE-2025-62798cvecve-2025-62798cwe-79
Published: Tue Oct 28 2025 (10/28/2025, 20:58:21 UTC)
Source: CVE Database V5
Vendor/Project: code16
Product: sharp

Description

Sharp is a content management framework built for Laravel as a package. Prior to 9.11.1, a Cross-Site Scripting (XSS) vulnerability was discovered in code16/sharp when rendering content using the SharpShowTextField component. In affected versions, expressions wrapped in {{ & }} were evaluated by Vue. This allowed attackers to inject arbitrary JavaScript or HTML that executes in the browser when the field is displayed. The issue has been fixed in v9.11.1 .

AI-Powered Analysis

AILast updated: 10/28/2025, 21:20:10 UTC

Technical Analysis

CVE-2025-62798 identifies a Cross-Site Scripting (XSS) vulnerability in the code16/sharp content management framework, specifically in versions prior to 9.11.1. Sharp is a Laravel package used to build content management systems, and the vulnerability resides in the SharpShowTextField component. This component renders content by evaluating expressions wrapped in {{ & }} using the Vue.js framework. Due to improper input neutralization, an attacker with at least limited privileges (PR:L) and requiring user interaction (UI:R) can inject malicious JavaScript or HTML code. When the vulnerable field is displayed in a user's browser, the injected script executes, potentially allowing theft of session tokens, manipulation of displayed content, or other malicious actions that compromise confidentiality and integrity. The vulnerability does not affect system availability. The CVSS v3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, and user interaction. No known exploits have been reported in the wild. The issue was addressed in version 9.11.1 by properly sanitizing or escaping input before rendering, preventing Vue from evaluating arbitrary expressions. Organizations using Sharp versions below 9.11.1 should upgrade promptly and audit any custom fields that may be vulnerable to injection attacks.

Potential Impact

For European organizations, this vulnerability poses a risk primarily to web applications built using the code16/sharp framework on Laravel. Successful exploitation can lead to unauthorized disclosure of sensitive information such as session cookies or user data, undermining confidentiality. Attackers could also alter the integrity of displayed content, potentially misleading users or facilitating phishing attacks. Although availability is not impacted, the reputational damage and potential regulatory consequences under GDPR for data breaches could be significant. Organizations relying on Sharp for content management in customer-facing or internal portals are at risk, especially if users with limited privileges can inject malicious scripts that execute in other users’ browsers. The need for user interaction reduces the likelihood of automated widespread exploitation but does not eliminate targeted attacks. Given the widespread use of Laravel in Europe, particularly in countries with strong software development sectors, the impact could be notable if patches are not applied.

Mitigation Recommendations

1. Upgrade all instances of code16/sharp to version 9.11.1 or later immediately to apply the official fix. 2. Review and sanitize all user inputs that are rendered using SharpShowTextField or similar components, ensuring no untrusted data is evaluated as Vue expressions. 3. Implement Content Security Policy (CSP) headers to restrict the execution of inline scripts and reduce the impact of potential XSS attacks. 4. Conduct code audits focusing on template rendering and input handling to identify any other instances where Vue expressions might be improperly evaluated. 5. Educate developers and administrators about the risks of injecting untrusted content into templates and the importance of escaping or sanitizing inputs. 6. Monitor web application logs and user reports for suspicious activity that could indicate attempted exploitation. 7. Employ web application firewalls (WAFs) with rules targeting XSS payloads as an additional layer of defense.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-10-22T18:55:48.011Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6901300969001fc67a67b9e0

Added to database: 10/28/2025, 9:05:13 PM

Last enriched: 10/28/2025, 9:20:10 PM

Last updated: 10/29/2025, 8:30:04 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats