Azu request-filtering-agent
request-filtering-agent: Synchronous throw from createConnection() for literal private-IP hosts bypasses req.on('error'), crashing the Node.js process
request-filtering-agent is an http(s).Agent implementation that blocks requests to Private/Reserved IP addresses. Prior to 3.2.1, RequestFilteringHttpAgent and RequestFilteringHttpsAgent synchronously threw from createConnection when rejecting a literal private-IP host such as 169.254.169.254 or 127.0.0.1. Because Node.js http.request and http.get expect connection failures to be delivered asynchronously, the throw bypassed req.on('error') and became an uncaught exception that could terminate the application process. Hostnames resolved through the asynchronous lookup path were not affected by this error-delivery asymmetry. This issue is fixed in version 3.2.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.2.1
Fixed in 3.2.1
Mitigation
Upgrade request-filtering-agent to 3.2.1 or later.
References
- Vendor advisory github.com/azu/request-filtering-agent/securit…
- Patch github.com/azu/request-filtering-agent/commit/…
- Release notes github.com/azu/request-filtering-agent/release…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.