nuxt vulnerable to Cross-site Scripting in navigateTo if used after SSR
- Severity:
- Medium
Description
The navigateTo
function attempts to blockthe javascript:
protocol, but does not correctly use API’s provided by unjs/ufo
. This library also contains parsing discrepancies.
Recommendation
Update the nuxt
package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.12.4
- Patched version(s): 3.12.4
References
Related Issues
- Bootstrap Cross-Site Scripting (XSS) vulnerability for data-* attributes - CVE-2024-6485
- sanitize-html is vulnerable to XSS through incomprehensive sanitization - CVE-2019-25225
- react-native-keys insecurely stores encryption cipher and Base64 chunks - CVE-2025-45001
- Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace] - CVE-2025-27793
- Tags:
- npm
- nuxt
Anything's wrong? Let us know Last updated on May 15, 2025