CVE-2025-24361
JavaScript vulnerability analysis and mitigation

Overview

Nuxt, an open-source web development framework for Vue.js, was found to have a security vulnerability affecting versions 3.0.0 through 3.15.12 of the webpack builder and versions 3.12.2 through 3.152 of the rspack builder. The vulnerability was discovered and disclosed on January 24, 2025, and allows attackers to steal source code during development when a victim opens a malicious website (NVD, GitHub Advisory).

Technical details

The vulnerability stems from a same-origin policy bypass where requests for classic script tags are not properly restricted. An attacker can inject a malicious script on their site and use Function::toString against the values in window.webpackChunknuxt_app to extract the source code. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N, indicating network attack vector, high attack complexity, no privileges required, and user interaction required (GitHub Advisory).

Impact

The vulnerability allows attackers to access and steal source code from Nuxt applications during development. This could lead to exposure of sensitive information, business logic, and potentially security-related configurations embedded in the source code (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Nuxt version 3.15.13. Users are strongly advised to upgrade to this version or later. The fix involves restricting access via CORS to local origins and allowing configuration through devServer.cors (Nuxt Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management