@nuxt/rspack-builder@4.6.3

rspack bundler for Nuxt

  • latest version

    4.6.4

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    14 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @nuxt/rspack-builder package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • L
    Origin Validation Error

    @nuxt/rspack-builder is a rspack bundler for Nuxt

    Affected versions of this package are vulnerable to Origin Validation Error via the development middleware's origin validation logic, which trusts Origin, Referer, or Sec-Fetch-Site: same-origin headers when the Host header names the same hostname. After a DNS rebinding attack redirects an attacker-controlled hostname to a loopback address, a malicious page opened while nuxt dev is running can issue requests that the middleware accepts as same-origin, allowing the page to read /_nuxt/*.js client chunks and inline source maps. This exposes compiled application source, local filesystem paths, and any developer-controlled values inlined into the client bundle, such as those injected via a custom DefinePlugin. With the rspack builder, the HMR websocket also accepts connections from the rebound hostname.

    Note: This is only exploitable when the webpack or rspack builder is used for development (builder: 'webpack' or builder: 'rspack'); the default Vite builder and production builds are unaffected.

    How to fix Origin Validation Error?

    Upgrade @nuxt/rspack-builder to version 4.0.0, 4.6.4 or higher.

    >=3.12.2 <4.0.0>=4.0.0 <4.6.4