org.mvnpm:webpack-dev-server@5.2.3

  • latest version

    6.1.0

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:webpack-dev-server 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
    • H
    Origin Validation Error

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Origin Validation Error via the WebSocket upgrade handler in lib/Server.js when a devServer.proxy entry is configured with ws: true. Upgrade requests are dispatched directly from the raw HTTP server and never enter the middleware chain, so allowedHosts and the cross-origin checks do not run for proxied WebSocket connections. An attacker can serve a cross-origin page that opens a WebSocket connection through the dev server proxy to a backend service the developer has configured, bypassing the Host and Origin header validation that protects the HMR socket.

    Note: This is only exploitable when a devServer.proxy entry is configured with ws: true.

    How to fix Origin Validation Error?

    Upgrade org.mvnpm:webpack-dev-server to version 6.1.0 or higher.

    [,6.1.0)
    • M
    Information Exposure

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Information Exposure via the isValidHost method in lib/Server.js, where Host and :authority headers are not properly validated against malformed or URL-encoded values. An attacker can send a request with a malformed Host header that bypasses the allowedHosts check, allowing unauthorized access to the webpack-dev-server. Additionally, the editor URL handler constructs a URL using the untrusted Host header as the base, which can be exploited to cause unexpected behavior through a malformed request.

    How to fix Information Exposure?

    Upgrade org.mvnpm:webpack-dev-server to version 6.1.0 or higher.

    [5.2.1,6.1.0)
    • M
    Improper Input Validation

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Improper Input Validation through the host-validation process. An attacker can cause the server to terminate unexpectedly by sending a malformed Host or Origin header in an HTTP request or WebSocket upgrade.

    How to fix Improper Input Validation?

    Upgrade org.mvnpm:webpack-dev-server to version 5.2.6 or higher.

    [,5.2.6)
    • M
    Cross-site Request Forgery (CSRF)

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the open-editor and invalidate endpoints. An attacker can open arbitrary local files in the developer's editor and repeatedly trigger recompilations, potentially degrading system performance, by enticing a developer to visit a malicious website while the development server is running.

    How to fix Cross-site Request Forgery (CSRF)?

    Upgrade org.mvnpm:webpack-dev-server to version 5.2.6 or higher.

    [,5.2.6)
    • M
    Unintended Proxy or Intermediary ('Confused Deputy')

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Unintended Proxy or Intermediary ('Confused Deputy') via permissive user proxy configurations that include a broad context and enable WebSocket forwarding. An attacker can cause the interception and forwarding of the dev server's own HMR WebSocket, leading to the leakage of browser cookies and Origin headers to the backend, bypassing Host/Origin validation, and corrupting the HMR socket by having both the proxy and the dev server write to the same socket.

    How to fix Unintended Proxy or Intermediary ('Confused Deputy')?

    Upgrade org.mvnpm:webpack-dev-server to version 5.2.5 or higher.

    [,5.2.5)
    • M
    Exposed Dangerous Method or Function

    org.mvnpm:webpack-dev-server is an Uses webpack with a development server that provides live reloading. It should be used for development only.

    Affected versions of this package are vulnerable to Exposed Dangerous Method or Function in Server.js, when handling non-HTTPS responses. An attacker can expose source code by tricking a developer into visiting a malicious site that retrieves the code via <script> element. This is only exploitable while the development server is running over plain HTTP, by the attacker guessing the target host and port.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2025-30359, which blocks the cross-origin leak for trusted (HTTPS) connections only.

    How to fix Exposed Dangerous Method or Function?

    Upgrade org.mvnpm:webpack-dev-server to version 5.2.4 or higher.

    [,5.2.4)