Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Cross-Site Scripting (XSS) vulnerabilities in an interactive lesson.
Start learningUpgrade vite
to version 4.4.12, 4.5.1, 5.0.5 or higher.
vite is a Native-ESM powered web dev build tool
Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) when the HTML transformation function is invoked manually through server.transformIndexHtml
. The original request URL is passed in unmodified. If the html
being transformed contains inline module scripts, it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to server.transformIndexHtml
.
This is exploitable by convincing a user running a dev server with appType: 'custom'
set and the default HTML middleware, to follow a malicious link. Additionally, restricted files aren't exposed to the attacker.
http://localhost:5173/?%22%3E%3C/script%3E%3Cscript%3Ealert(%27boom%27)%3C/script%3E