PT-2026-106277
CVE-2026-105782
·
تاريخ النشر
2026-03-13
·
تاريخ التحديث
2026-10-15
الوصف من
CVSS 3.1
7.5
عاليةالمقاييسAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
Scrapy versions 1.4.0 through 2.14.1
Description
RefererMiddleware in
scrapy/spidermiddlewares/referer.py incorrectly handles the Referrer-Policy response header. If the header value resembles a Python import path, the framework imports the referenced object and executes it, assuming it is a referrer policy class. A malicious website can exploit this by providing a callable, such as sys.exit, to terminate the crawler process.Recommendations
Update to version 2.14.2.
Set
REFERER ENABLED to False to disable the middleware.
Disable the middleware and manually set the Referer header on required requests.
Set the referrer policy meta key on all requests to prevent the evaluation of the Referrer-Policy header from responses.
Disable the built-in referrer policy middleware by setting it to None in SPIDER MIDDLEWARES and replace it with the fixed implementation from version 2.14.2. وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾