Skip to content

Scrapy: S3DownloadHandler sends signed S3 requests over plaintext HTTP by default

High severity GitHub Reviewed Published Jul 7, 2026 in scrapy/scrapy • Updated Sep 2, 2026

Package

pip scrapy (pip)

Affected versions

< 2.17.0

Patched versions

2.17

Description

Problem

Scrapy’s S3DownloadHandler sends signed S3 requests over plaintext HTTP by default.

A normal request like s3://bucket/key is converted into http://bucket.s3.amazonaws.com/key unless request.meta["is_secure"] is explicitly set. The generated request is then signed with configured AWS credentials, so AWS authorization material can be sent without TLS.

Vulnerable code in scrapy/core/downloader/handlers/s3.py:

scheme = "https" if request.meta.get("is_secure") else "http"
url = f"{scheme}://{bucket}.s3.amazonaws.com{path}"

The request is then signed and dispatched:

self._signer.add_auth(awsrequest)
request = request.replace(url=url, headers=awsrequest.headers.items())

Impact

Users making Scrapy s3:// requests with AWS credentials are impacted.

A network attacker able to observe traffic between Scrapy and S3, such as a public Wi-Fi attacker, compromised router, ISP/corporate network observer, or local network attacker using ARP spoofing, can read:

bucket/key path
AWS Authorization header
X-Amz-Security-Token, if temporary credentials are used
S3 object contents
S3 response headers

An active MITM attacker can also modify the plaintext S3 response body, status code, and headers before Scrapy processes it. This can cause scraped data poisoning, poisoned exports, HTTP cache poisoning when cache is enabled, and influence over later crawl targets through forged redirects or attacker-controlled links.

Suggested classification: CWE-319: Cleartext Transmission of Sensitive Information.

PoC

A minimal PoC creates an s3:// request, enables fake AWS settings, captures the request produced by S3DownloadHandler, and prints the rewritten URL and auth headers.

References

@AdrianAtZyte AdrianAtZyte published to scrapy/scrapy Jul 7, 2026
Published by the National Vulnerability Database Sep 1, 2026
Published to the GitHub Advisory Database Sep 2, 2026
Reviewed Sep 2, 2026
Last updated Sep 2, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(5th percentile)

Weaknesses

Cleartext Transmission of Sensitive Information

The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. Learn more on MITRE.

CVE ID

CVE-2026-84366

GHSA ID

GHSA-76g3-c3x4-crvx

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.