In http-proxy-middleware before 2.0.8 and 3.x before 3.0.4, writeBody can be called twice because else if is not used.
The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Http-proxy-middleware | Chimurai | * | 2.0.8 (excluding) |
| Http-proxy-middleware | Chimurai | 3.0.0 (including) | 3.0.4 (excluding) |
| Red Hat Developer Hub 1.6 | RedHat | rhdh/rhdh-hub-rhel9:1.6.2-1750887220 | * |
| Red Hat Developer Hub 1.7 | RedHat | rhdh/rhdh-hub-rhel9:1.7.0-1754936470 | * |