org.mvnpm:webpack-dev-server@5.2.6

  • 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)