org.mvnpm:http-proxy-middleware@1.3.1

  • latest version

    4.2.1

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:http-proxy-middleware 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
    Uncaught Exception

    Affected versions of this package are vulnerable to Uncaught Exception via the handleUpgrade function when ws: true is enabled. An Upgrade request whose path does not match pathFilter leaves the raw socket without an error listener, so a remote unauthenticated client can send such an Upgrade request and then reset the TCP connection, triggering an unhandled ECONNRESET error that terminates the gateway process. This crash occurs even when middleware and server error and clientError callbacks are configured.

    How to fix Uncaught Exception?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • M
    Partial String Comparison

    Affected versions of this package are vulnerable to Partial String Comparison via the router component. An attacker can route requests to unintended backend servers by sending crafted HTTP requests with manipulated Host headers.

    How to fix Partial String Comparison?

    Upgrade org.mvnpm:http-proxy-middleware to version 2.0.10, 3.0.7, 4.1.0 or higher.

    [1.3.1,2.0.10)[3.0.3,3.0.7)[4.0.0,4.1.0)
    • M
    Improper Check for Unusual or Exceptional Conditions

    Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions in the fixRequestBody() function, which processes certain invalid requests without error. An attacker can manipulate the request body by sending requests that violate the expected structure for bodyParser().

    How to fix Improper Check for Unusual or Exceptional Conditions?

    Upgrade org.mvnpm:http-proxy-middleware to version 2.0.9, 3.0.5 or higher.

    [1.3.1,2.0.9)[3.0.3,3.0.5)
    • M
    Always-Incorrect Control Flow Implementation

    Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation in the fixRequestBody() function. An attacker can cause writeBody to be called multiple times, leading to unexpected behavior.

    How to fix Always-Incorrect Control Flow Implementation?

    Upgrade org.mvnpm:http-proxy-middleware to version 2.0.9, 3.0.4 or higher.

    [1.3.1,2.0.9)[3.0.3,3.0.4)
    • H
    Denial of Service (DoS)

    Affected versions of this package are vulnerable to Denial of Service (DoS) due to an UnhandledPromiseRejection error thrown by micromatch. An attacker could kill the Node.js process and crash the server by making requests to certain paths.

    How to fix Denial of Service (DoS)?

    Upgrade org.mvnpm:http-proxy-middleware to version 2.0.7 or higher.

    [,2.0.7)