CVE-2024-34343
Cross-site Scripting (XSS) in navigateTo if used after SSR in nuxt
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. 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. The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol. After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values. Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing. The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks. Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks. This ONLY has impact after SSR has occured, the javascript: protocol within a location header does not trigger XSS. This issue has been addressed in release version 3.12.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.3
Cross-site Scripting (XSS) in navigateTo if used after SSR in nuxt
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. 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. The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol. After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values. Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing. The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks. Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks. This ONLY has impact after SSR has occured, the javascript: protocol within a location header does not trigger XSS. This issue has been addressed in release version 3.12.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
- Record
CVE-2024-34343- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2024-2661
6.3
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. 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. The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol. After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values. Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing. The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks. Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks. This ONLY has impact after SSR has occured, the javascript: protocol within a location header does not trigger XSS. This issue has been addressed in release version 3.12.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
- Record
EUVD-2024-2661- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-vf6r-87q4-2vjf
5.1
nuxt vulnerable to Cross-site Scripting in navigateTo if used after SSR
Summary
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.
Details
The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol.
After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values.
Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing.
The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks.
Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks.
PoC
POC - https://stackblitz.com/edit/nuxt-xss-navigateto?file=app.vue
Attempt payload X, then attempt payload Y.
Impact
XSS, access to cookies, make requests on user's behalf.
Recommendations
As always with these bugs, the URL constructor provided by the browser is always the safest method of parsing a URL.
Given the cross-platform requirements of nuxt/ufo a more appropriate solution is to make parsing consistent between functions, and to adapt parsing to be more consistent with the WHATWG URL specification.
Note
I've reported this vulnerability here as it is unclear if this is a bug in ufo or a misuse of the ufo library.
This ONLY has impact after SSR has occurred, the javascript: protocol within a location header does not trigger XSS.
- Record
GHSA-vf6r-87q4-2vjf- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-79, CWE-83
- Updated
- 2026-11-02
NVD
6.3
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. 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. The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol. After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values. Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing. The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks. Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks. This ONLY has impact after SSR has occured, the javascript: protocol within a location header does not trigger XSS. This issue has been addressed in release version 3.12.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
- Record
CVE-2024-34343- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.3
Cross-site Scripting (XSS) in navigateTo if used after SSR in nuxt
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. 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. The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol. After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values. Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing. The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks. Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks. This ONLY has impact after SSR has occured, the javascript: protocol within a location header does not trigger XSS. This issue has been addressed in release version 3.12.4 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
- Record
CVE-2024-34343- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-vf6r-87q4-2vjf
5.1
nuxt vulnerable to Cross-site Scripting in navigateTo if used after SSR
Summary
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.
Details
The function first tests to see if the specified URL has a protocol. This uses the unjs/ufo package for URL parsing. This function works effectively, and returns true for a javascript: protocol.
After this, the URL is parsed using the parseURL function. This function will refuse to parse poorly formatted URLs. Parsing javascript:alert(1) returns null/"" for all values.
Next, the protocol of the URL is then checked using the isScriptProtocol function. This function simply checks the input against a list of protocols, and does not perform any parsing.
The combination of refusing to parse poorly formatted URLs, and not performing additional parsing means that script checks fail as no protocol can be found. Even if a protocol was identified, whitespace is not stripped in the parseURL implementation, bypassing the isScriptProtocol checks.
Certain special protocols are identified at the top of parseURL. Inserting a newline or tab into this sequence will block the special protocol check, and bypass the latter checks.
PoC
POC - https://stackblitz.com/edit/nuxt-xss-navigateto?file=app.vue
Attempt payload X, then attempt payload Y.
Impact
XSS, access to cookies, make requests on user's behalf.
Recommendations
As always with these bugs, the URL constructor provided by the browser is always the safest method of parsing a URL.
Given the cross-platform requirements of nuxt/ufo a more appropriate solution is to make parsing consistent between functions, and to adapt parsing to be more consistent with the WHATWG URL specification.
Note
I've reported this vulnerability here as it is unclear if this is a bug in ufo or a misuse of the ufo library.
This ONLY has impact after SSR has occurred, the javascript: protocol within a location header does not trigger XSS.
- Record
GHSA-vf6r-87q4-2vjf- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N - CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-79, CWE-83
- Updated
- 2026-11-02
Show 15 moreShow less
OSVCLSA-2026-1775781170 No score
TuxCare security update for nuxt (1 CVE)
TuxCare rebuilt nuxt to address 1 CVE. Fixed in 0.10.7-tuxcare.1.
- Record
CLSA-2026-1775781170- Updated
- 2026-11-02
OSVCLSA-2026-1775781171 No score
TuxCare security update for nuxt (1 CVE)
TuxCare rebuilt nuxt to address 1 CVE. Fixed in 1.4.5-tuxcare.1.
- Record
CLSA-2026-1775781171- Updated
- 2026-11-02
OSVCLSA-2026-1775781180 No score
TuxCare security update for 13 packages (1 CVE)
TuxCare rebuilt 13 packages to address 1 CVE. Fixed in 2.18.1-tuxcare.1.
- Record
CLSA-2026-1775781180- Updated
- 2026-11-02
OSVCLSA-2026-1775867594 No score
TuxCare security update for nuxt (4 CVEs)
TuxCare rebuilt nuxt to address 4 CVEs. Fixed in 3.12.3-tuxcare.1.
- Record
CLSA-2026-1775867594- Updated
- 2026-11-02
OSVCLSA-2026-1788355153 No score
TuxCare security update for nuxt (3 CVEs)
TuxCare rebuilt nuxt to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1788355153- Updated
- 2026-11-02
OSVCLSA-2026-1792161441 No score
TuxCare security update for @nuxt/kit (4 CVEs)
TuxCare rebuilt @nuxt/kit to address 4 CVEs. Fixed in 3.12.3-tuxcare.1.
- Record
CLSA-2026-1792161441- Updated
- 2026-11-02
OSVCLSA-2026-1792161458 No score
TuxCare security update for @nuxt/kit (3 CVEs)
TuxCare rebuilt @nuxt/kit to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1792161458- Updated
- 2026-11-02
OSVCLSA-2026-1792161581 No score
TuxCare security update for @nuxt/schema (4 CVEs)
TuxCare rebuilt @nuxt/schema to address 4 CVEs. Fixed in 3.12.3-tuxcare.1.
- Record
CLSA-2026-1792161581- Updated
- 2026-11-02
OSVCLSA-2026-1792161599 No score
TuxCare security update for @nuxt/schema (3 CVEs)
TuxCare rebuilt @nuxt/schema to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1792161599- Updated
- 2026-11-02
OSVCLSA-2026-1792161804 No score
TuxCare security update for @nuxt/vite-builder (4 CVEs)
TuxCare rebuilt @nuxt/vite-builder to address 4 CVEs. Fixed in 3.12.3-tuxcare.1.
- Record
CLSA-2026-1792161804- Updated
- 2026-11-02
OSVCLSA-2026-1792161821 No score
TuxCare security update for @nuxt/vite-builder (3 CVEs)
TuxCare rebuilt @nuxt/vite-builder to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1792161821- Updated
- 2026-11-02
OSVCLSA-2026-1792161917 No score
TuxCare security update for @nuxt/webpack-builder (4 CVEs)
TuxCare rebuilt @nuxt/webpack-builder to address 4 CVEs. Fixed in 3.12.3-tuxcare.1.
- Record
CLSA-2026-1792161917- Updated
- 2026-11-02
OSVCLSA-2026-1792161934 No score
TuxCare security update for @nuxt/webpack-builder (3 CVEs)
TuxCare rebuilt @nuxt/webpack-builder to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1792161934- Updated
- 2026-11-02
OSVCLSA-2026-1792163457 No score
TuxCare security update for @nuxt/test-utils (3 CVEs)
TuxCare rebuilt @nuxt/test-utils to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1792163457- Updated
- 2026-11-02
OSVCLSA-2026-1793661075 No score
TuxCare security update for nuxi (3 CVEs)
TuxCare rebuilt nuxi to address 3 CVEs. Fixed in 3.2.0-tuxcare.5.
- Record
CLSA-2026-1793661075- Updated
- 2026-11-03
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nuxtnpm |
before 3.12.4 | 3.12.4 |
nuxtTuxCare:npm |
0.10.7-tuxcare.0 up to 0.10.7-tuxcare.1, plus listed versions 0.10.7 |
0.10.7-tuxcare.1 |
nuxtTuxCare:npm |
1.4.5-tuxcare.0 up to 1.4.5-tuxcare.1, plus listed versions 1.4.5 |
1.4.5-tuxcare.1 |
@nuxt/babel-preset-appTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/builderTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/configTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/coreTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/generatorTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/serverTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/typesTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
@nuxt/utilsTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/vue-appTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/vue-rendererTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
@nuxt/webpackTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
nuxtTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
nuxt-startTuxCare:npm |
2.18.1-tuxcare.0 up to 2.18.1-tuxcare.1, plus listed versions 2.18.1 |
2.18.1-tuxcare.1 |
nuxtTuxCare:npm From an advisory covering 4 CVEs |
3.12.3-tuxcare.0 up to 3.12.3-tuxcare.1, plus listed versions 3.12.3 |
3.12.3-tuxcare.1 |
nuxtTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.13.2.0-tuxcare.23.2.0-tuxcare.33.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
@nuxt/kitTuxCare:npm From an advisory covering 4 CVEs |
3.12.3-tuxcare.0 up to 3.12.3-tuxcare.1, plus listed versions 3.12.3 |
3.12.3-tuxcare.1 |
@nuxt/kitTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
@nuxt/schemaTuxCare:npm From an advisory covering 4 CVEs |
3.12.3-tuxcare.0 up to 3.12.3-tuxcare.1, plus listed versions 3.12.3 |
3.12.3-tuxcare.1 |
@nuxt/schemaTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
@nuxt/vite-builderTuxCare:npm From an advisory covering 4 CVEs |
3.12.3-tuxcare.0 up to 3.12.3-tuxcare.1, plus listed versions 3.12.3 |
3.12.3-tuxcare.1 |
@nuxt/vite-builderTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
@nuxt/webpack-builderTuxCare:npm From an advisory covering 4 CVEs |
3.12.3-tuxcare.0 up to 3.12.3-tuxcare.1, plus listed versions 3.12.3 |
3.12.3-tuxcare.1 |
@nuxt/webpack-builderTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
@nuxt/test-utilsTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
nuxiTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.5, plus listed versions 3.2.03.2.0-tuxcare.23.2.0-tuxcare.4 |
3.2.0-tuxcare.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases | OSV | |
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-34343 is a medium vulnerability (CVSS 6.3) in @clerk Nuxt, published August 5, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.44%, the 38th percentile. Fixed in nuxt 3.12.4.