CVE-2021-41124
Python vulnerability analysis and mitigation

Overview

CVE-2021-41124 is a security vulnerability discovered in Scrapy-splash, a library that provides Scrapy and JavaScript integration. The vulnerability was disclosed on October 5, 2021. When users utilize HttpAuthMiddleware (through http_user and http_pass spider attributes) for Splash authentication, their credentials could be exposed to non-Splash request targets, including robots.txt requests when ROBOTSTXT_OBEY is set to True (GitHub Advisory, NVD).

Technical details

The vulnerability occurs when using HttpAuthMiddleware for Splash authentication, where authentication credentials are inadvertently sent to all requests, not just Splash-related ones. This affects versions prior to 0.8.0. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) by NIST NVD, indicating a high severity level with potential for credential exposure (NVD).

Impact

The primary impact of this vulnerability is the potential exposure of authentication credentials to unauthorized third parties. When making non-Splash requests, including automated robots.txt requests, the Splash authentication credentials are sent to these external targets, potentially compromising the security of the Splash server (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to scrapy-splash version 0.8.0 and use the new SPLASH_USER and SPLASH_PASS settings instead of HttpAuthMiddleware. For users unable to upgrade, alternative workarounds include setting Splash request credentials on a per-request basis using the splash_headers request parameter, or ensuring all requests go through Splash by disabling the robots.txt middleware (GitHub Advisory, GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-50271HIGH7.5
  • Python logoPython
  • ddtrace
NoYesJul 17, 2026
CVE-2026-54559MEDIUM6.9
  • Python logoPython
  • pocketsphinx
NoYesJul 17, 2026
GHSA-mfr4-mq8w-vmg6MEDIUM6.6
  • Python logoPython
  • proot-distro
NoYesJul 17, 2026
CVE-2026-47144MEDIUM5.5
  • JavaScript logoJavaScript
  • shamefile
NoYesJul 20, 2026
CVE-2026-46715MEDIUM5.3
  • Python logoPython
  • flask-security-too
NoYesJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management