req is vulnerable to Denial of Service (DoS)
82
CVE Score
High
Denial of Service (DoS)
req is vulnerable to a denial-of-service condition caused by improper handling of highly compressed data. The default response processing pipeline automatically decompresses and extracts archive formats such as ZIP, TAR, and GZIP entirely in memory without enforcing limits on decompressed size or archive contents. An attacker controlling an HTTP server can return a specially crafted compression bomb or layered compressed response that expands to an extremely large size during processing. This can lead to excessive memory consumption and potentially crash the BEAM process, resulting in a denial of service.
Upgrade the req library to the patch version or disable req's automatic response decoding when fetching attacker-controlled URLs by setting decode_body: false. To also disable content-encoding decompression, use raw: true. These options preserve the response body in its original form, allowing applications to validate size and content before performing any decompression.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 0.6.0
Fixed in 0.6.1req is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.6.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.