CVE-2026-84366: Scrapy: S3DownloadHandler sends signed S3 requests over plaintext HTTP by default

Published Sep 1, 2026
·
Updated

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["issecure"] 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:

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

The request is then signed and dispatched:

python self.signer.addauth(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:

text 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.

Other sources

Scrapy is a high-level web crawling and scraping framework for Python. Prior to 2.17.0, in scrapy/core/downloader/handlers/s3.py, Scrapy's S3DownloadHandler converts an S3-scheme bucket and key request into a plaintext HTTP request to the corresponding S3 endpoint unless request.meta["issecure"] is explicitly enabled, then signs and sends the plaintext request with configured AWS credentials. A network attacker who can observe traffic between Scrapy and S3 can read the bucket and key path, AWS Authorization header, X-Amz-Security-Token when temporary credentials are used, S3 object contents, and S3 response headers. An active man-in-the-middle attacker can also modify the plaintext S3 response body, status code, and headers before Scrapy processes them, causing scraped-data poisoning, poisoned exports, HTTP cache poisoning when caching is enabled, or influence over later crawl targets through forged redirects or attacker-controlled links. Users making S3-scheme requests with AWS credentials are affected. This issue is fixed in version 2.17.0.

— NVD

Affected Software

2 affected componentsFixes available
Scrapy<2.17.0
pip/scrapy<2.17.0
2.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/scrapy to a version that resolves this vulnerability.

    Fixed in 2.17
  2. Upgrade

    Upgrade scrapy/core/downloader/handlers/s3.py (S3DownloadHandler) to a version that resolves this vulnerability.

    Fixed in 2.17.0

Event History

Sep 1, 2026
CVE Published
via MITRE·08:29 PM
Data Sourced
via MITRE·08:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:18 PM
DescriptionSeverityWeakness
Sep 2, 2026
Advisory Published
via GitHub·10:50 PM
Data Sourced
via GitHub·10:50 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is affected by this issue?

Users of Scrapy versions before 2.17.0 that make S3-scheme requests using configured AWS credentials are affected. Exposure requires a network attacker able to observe or intercept traffic between the Scrapy process and S3.

2

Is the default S3 request behavior affected?

Yes. Before 2.17.0, S3DownloadHandler uses plaintext HTTP unless request.meta["is_secure"] is explicitly enabled. Requests explicitly configured with is_secure enabled do not use that plaintext behavior.

3

What can an attacker do if they can intercept the connection?

A passive attacker can read bucket and key paths, AWS Authorization headers, temporary-credential security tokens, object contents, and S3 response headers. An active attacker can alter response bodies, status codes, and headers, potentially poisoning scraped data, exports, or caches and influencing subsequent crawl targets through forged redirects or links.

4

What should be done if an immediate upgrade is not possible?

Explicitly enable request.meta["is_secure"] for S3-scheme requests to avoid the plaintext HTTP behavior. Upgrade to Scrapy 2.17.0 when possible, where the issue is fixed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203