Skip to main content
EPSS 0.5%top 58%

CVE-2026-55520: CWE-400: Uncontrolled Resource Consumption in scrapy protego

0
High
Published: 08/29/2026 (08/29/2026, 09:41:25 UTC)
Source: CVE Database V5
Vendor/Project: scrapy
Product: protego

Description

CVE-2026-55520 is a high-severity vulnerability in the scrapy protego library where uncontrolled resource consumption occurs due to exponential backtracking in regex patterns generated from robots.txt directives containing many asterisks. This causes the Protego parser to freeze when processing certain crafted robots.txt files and matching URLs.

CVSS v4.0

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

scrapy

protego

Affected versions
<0.6.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 21:13:21 UTC

Technical Analysis

The scrapy protego library constructs regular expressions to match URLs against robots.txt Allow and Disallow directives by translating each asterisk (*) into a lazy '.*?' regex fragment. A specially crafted directive with many asterisks can produce a regex pattern that triggers exponential backtracking, causing the parser to freeze during URL matching. This uncontrolled resource consumption vulnerability (CWE-400) affects versions of protego prior to 0.6.2. The issue manifests when Protego.parse() processes a malicious robots.txt and subsequent calls to Protego.can_fetch() hang for a duration dependent on the URL length.

Potential Impact

An attacker can cause a denial of service by supplying a malicious robots.txt file with crafted directives containing many asterisks. This leads to Protego's regex engine freezing during URL matching, resulting in application hang or resource exhaustion. There is no indication of privilege escalation or data compromise, but availability is impacted.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor the official scrapy/protego project for updates addressing this regex exponential backtracking issue. Until a fix is available, avoid parsing untrusted robots.txt files with many asterisks in directives.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-16T22:44:22.284Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a91e40eacd9273b4942e841

Added to database: 08/28/2026, 19:39:58 UTC

Last enriched: 10/04/2026, 21:13:21 UTC

Last updated: 10/11/2026, 06:48:17 UTC

Views: 47

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses