CVE-2025-62798 Sharp user-provided input can be evaluated in a SharpShowTextField with Vue template syntax

Medium 5.4 Published Updated

Attackers can inject arbitrary JavaScript via Vue template syntax in SharpShowTextField, leading to XSS in the browser.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-62798?

CVE-2025-62798 is a medium-severity cross-site scripting vulnerability in code16 sharp, published on 28 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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 .

Weakness: CWE-79

Which versions are affected by CVE-2025-62798?

2 open source packages ship an affected version, including code16/sharp.

PackageAffectedFixed in
code16/sharp PackagistAll versions9.11.1
code16/sharp PackagistAll versions9.11.1

How do I fix CVE-2025-62798?

Upgrade code16/sharp to 9.11.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-62798 being exploited?

There is no known exploitation of CVE-2025-62798 in the wild and no public exploit code.

Sources

Also known as GHSA-9f58-4465-23c7.

Is CVE-2025-62798 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free