Exposed Dangerous Method or Function Affecting @nuxt/webpack-builder package, versions >=3.15.4 <3.21.5>=4.0.0-alpha.1 <4.4.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.21% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NUXTWEBPACKBUILDER-17178726
  • published5 Jun 2026
  • disclosed19 May 2026
  • creditsapphi-red

Introduced: 19 May 2026

CVE-2026-45670  (opens in a new tab)
CWE-749  (opens in a new tab)

How to fix?

Upgrade @nuxt/webpack-builder to version 3.21.5, 4.4.5 or higher.

Overview

@nuxt/webpack-builder is a Webpack bundler for Nuxt

Affected versions of this package are vulnerable to Exposed Dangerous Method or Function when using webpack or rspack builder and navigating to a malicious website. An attacker can inject a script tag to request a classic script, which is not restricted by the same-origin policy. This allows the script to execute and access the window.webpackChunknuxt_app object. By utilizing Function::toString on the values within this object, the attacker can extract and display the source code.

Note:

This is caused by an incomplete fix for CVE-2025-24361.

CVSS Base Scores

version 4.0
version 3.1