Intel

AIKIDO-2026-233642

req is vulnerable to Denial of Service (DoS)

CVE-2026-49755Published Jun 16, 2026
June 16, 2026

82

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 0.6.0

Fixed in 0.6.1

Background info

req is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.6.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea