Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:44579
HistoryDec 05, 2023 - 1:49 p.m.

Cross-site Scripting (XSS)

2023-12-0513:49:28
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
40
vite
cross-site scripting
vulnerability
unsanitized inline scripts
injection
execution
malicious javascript
exploitable
apptype: 'custom'
html middleware

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

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

AI Score

6.7

Confidence

High

EPSS

0.001

Percentile

17.0%

vite is vulnerable to Cross-Site Scripting. This vulnerability exists because it does not properly sanitize inline scripts in the server.transformIndexHtml function, allowing an attacker to inject and execute malicious JavaScript into the browser. This vulnerability is only exploitable if the application utilizes the appType: 'custom' configuration, and the default Vite HTML middleware is in use.

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

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

AI Score

6.7

Confidence

High

EPSS

0.001

Percentile

17.0%