CVE-2024-42352 Server-Side Request Forgery (SSRF) in nuxt-icon
Attackers can exploit improper URL parsing in nuxt-icon to perform Server-Side Request Forgery, potentially accessing internal services or sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42352?
CVE-2024-42352 is a high-severity server-side request forgery vulnerability in nuxt icon, published on 5 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. `nuxt/icon` provides an API to allow client side icon lookup. This endpoint is at `/api/_nuxt_icon/[name]`. The proxied request path is improperly parsed, allowing an attacker to change the scheme and host of the request. This leads to SSRF, and could potentially lead to sensitive data exposure. The `new URL` constructor is used to parse the final path. This constructor can be passed a relative scheme or path in order to change the host the request is sent to. This constructor is also very tolerant of poorly formatted URLs. As a result we can pass a path prefixed with the string `http:`. This has the effect of changing the scheme to HTTP. We can then subsequently pass a new host, for example `http:127.0.0.1:8080`. This would allow us to send requests to a local server. This issue has been addressed in release version 1.4.5 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-918
Which versions are affected by CVE-2024-42352?
2 open source packages ship an affected version, including @nuxt/icon. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@nuxt/icon npm | All versions | 1.4.5 |
@nuxt/icon npm | All versions | 1.4.5 |
Products include Nuxt Nuxt.
How do I fix CVE-2024-42352?
Upgrade @nuxt/icon to 1.4.5 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-42352 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42352 exists.
Other vulnerabilities in nuxt icon
- CVE-2026-53721 Nuxt: Route-rule middleware bypass via case-sensitivity mismatch between vue-router and the routeRules matcher
- CVE-2024-23657 Path Traversal: '../filedir' in Nuxt Devtools
- CVE-2024-34344 Remote code execution via the browser when running the test locally in nuxt
- CVE-2023-3224 Code Injection in nuxt/nuxt
- CVE-2025-27415 Nuxt allows DOS via cache poisoning with payload rendering response
Sources
Also known as GHSA-cxgv-px37-4mp2.