CVE-2024-34343
A public proof of concept exists; no exploitation attested.
- Published2024-08-05
- Fixed in3.12.4
- WeaknessCWE-79
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2024-08-0521:15CVE publishedNVD
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.12 | < 3.12.4 | 3.12.4 | NVD · OSV |
| 3.12 | = 3.12.4 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- nuxtAffected
- = < 3.12.4no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-08-05
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- nuxiTuxCare:npmfrom 3.2.0-tuxcare.0 · fixed in 3.2.0-tuxcare.5and 6 other packages
- nuxtTuxCare:npmfrom 2.18.1-tuxcare.0 · fixed in 2.18.1-tuxcare.1and 12 other packages
- nuxtTuxCare:npmfrom 0.10.7-tuxcare.0 · fixed in 0.10.7-tuxcare.1
- nuxtTuxCare:npmfrom 1.4.5-tuxcare.0 · fixed in 1.4.5-tuxcare.1
- nuxtTuxCare:npmfrom 3.12.3-tuxcare.0 · fixed in 3.12.3-tuxcare.1and 4 other packages
Fix
- Update Nuxt to 3.12.4
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-08-08
- PoC-in-GitHubno public repository identifiedread 2026-11-26
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-08-08
- CNACVSS 3.16.3known since 2026-10-23
- NVDCVSS 3.16.1read 2026-10-23
- CNAweakness (CWE)CWE-79known since 2026-10-23
- NVDweakness (CWE)CWE-79read 2026-10-23
- FIRST EPSSEPSS score0.6 %2026-11-25
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2024-08-05
Identifiers
- EUVD-2024-2661same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-vf6r-87q4-2vjfsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Published
- 2024-08-05
- Last modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub advisory
- GHSA-vf6r-87q4-2vjf
Frequently asked questions
What is CVE-2024-34343?
Is CVE-2024-34343 actively exploited?
What is the CVSS score for CVE-2024-34343?
Running Nuxt? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-vf6r-87q4-2vjf
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0