CyberSecBulletin
CVE-2024-21536NVD status: Modified

http-proxy-middleware: Uncontrolled Resource Consumption

CVE-2024-21536 is a high-severity uncontrolled resource consumption vulnerability in http-proxy-middleware, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 2.0.7, 3.0.3 as the first without the flaw, so updating http-proxy-middleware to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.03% chance of exploitation within 30 days, higher than 64% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update http-proxy-middleware to 2.0.7 or 3.0.3, whichever matches your release line, or a later version.
  2. Update http-proxy-middleware to 2.0.7 or 3.0.3, whichever matches your release line, or a later version.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Http-proxy-middlewarehttp-proxy-middlewarebefore 2.0.7; 3.0.0 up to, but not including, 3.0.32.0.7, 3.0.3
Org.webjars.npm:http-proxy-middlewareorg.webjars.npm:http-proxy-middlewareall versionsNot stated
Chimuraihttp-proxy-middlewarebefore 2.0.7; 3.0.0 up to, but not including, 3.0.32.0.7, 3.0.3

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.07.7HighCNA (snyk.io)
CVSS 3.17.5HighCNA (snyk.io)
CVSS 3.17.5HighNVD

Official description

Versions of the package http-proxy-middleware before 2.0.7, from 3.0.0 and before 3.0.3 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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource.

How developers prevent this class of flaw

  • Ensure that protocols have specific limits of scale placed on them.
  • Ensure that all failures in resource allocation place the system into a safe posture.

More Uncontrolled Resource Consumption vulnerabilities (CWE-400)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Technical write-ups (may include proof of concept)

Recent Uncontrolled Resource Consumption vulnerabilities

Spotted an error? Tell us.