CVE-2026-105782: Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware

Published Oct 5, 2026
·
Updated

Scrapy is a high-level web crawling and scraping framework for Python. From 1.4.0 until 2.14.2, RefererMiddleware in scrapy/spidermiddlewares/referer.py treated a Referrer-Policy response-header value that resembled a Python import path as a referrer policy class, imported the referenced object, and called it. A malicious website could supply a callable such as sys.exit and terminate a crawler processing the response. This issue is fixed in version 2.14.2.

Affected Software

1 affected component
pypi/scrapy>=1.4.0<2.14.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Scrapy to a version that resolves this vulnerability.

    Fixed in 2.14.2

Event History

Oct 5, 2026
CVE Published
via MITRE·11:08 PM
Data Sourced
via MITRE·11:08 PM
DescriptionSeverityWeakness
Oct 6, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Scrapy installations from 1.4.0 through versions before 2.14.2 are affected if their crawlers process responses from malicious websites.

2

What must an attacker do to trigger the issue?

An attacker needs to operate or control a website that the crawler processes and return a crafted Referrer-Policy response header. No authentication or user interaction is required.

3

What is the practical impact of successful exploitation?

The reported impact is loss of availability. A malicious response can cause the crawler process to terminate, for example by causing sys.exit to be imported and called.

4

How can I determine whether an installation needs remediation?

Check the installed Scrapy version. Versions from 1.4.0 up to, but not including, 2.14.2 require remediation.

5

What version fixes the issue?

Upgrade Scrapy to version 2.14.2, which includes the fix.

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