org.mvnpm:http-proxy-middleware@3.0.4

  • 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
    CRLF Injection

    Affected versions of this package are vulnerable to CRLF Injection via the fixRequestBody function. An attacker can inject or override multipart form fields, potentially bypassing gateway-side validation or access controls, by supplying crafted input containing carriage return and line feed characters in field names or values. This can result in the backend receiving manipulated parameters not visible to the gateway, enabling unauthorized actions or parameter tampering.

    Note:

    This is only exploitable if the proxy application uses a non-multipart parser to populate the request body, the outgoing request is sent as multipart/form-data, and the application calls fixRequestBody with attacker-controlled input.

    How to fix CRLF Injection?

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

    [3.0.4,3.0.7)[4.0.0,4.1.1)
    • 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)