CVE-2024-34343
Last modified
CVE-2024-34343 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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`. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nuxt | Nuxt | < 3.12.4 |
References
- https://github.com/nuxt/nuxt/security/advisories/GHSA-vf6r-87q4-2vjfExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-34343?
How severe is CVE-2024-34343?
How do I fix CVE-2024-34343?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-34336User enumeration vulnerability in ORDAT FOSS-Online before v…5.3
- CVE-2024-34338Tenda O3V2 with firmware versions V1.0.0.10 and V1.0.0.12 wa…7.2
- CVE-2024-3434A vulnerability classified as critical was found in CP Plus …5.4
- CVE-2024-34340Cacti provides an operational monitoring and fault managemen…9.1
- CVE-2024-34341Trix is a rich text editor. The Trix editor, versions prior …5.4
- CVE-2024-34342react-pdf displays PDFs in React apps. If PDF.js is used to …7.1
- CVE-2024-34344Nuxt is a free and open-source framework to create full-stac…8.8
- CVE-2024-34345The CycloneDX JavaScript library contains the core functiona…8.1
- CVE-2024-34346Deno is a JavaScript, TypeScript, and WebAssembly runtime wi…9
- CVE-2024-34347@hoppscotch/cli is a CLI to run Hoppscotch Test Scripts in C…8.3
- CVE-2024-34349Sylius is an open source eCommerce platform. Prior to 1.12.1…4.8
- CVE-2024-3435A path traversal vulnerability exists in the 'save_settings'…8.4
Are you affected by CVE-2024-34343?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
