CVE-2022-31313
Python vulnerability analysis and mitigation

Overview

The api-res-py package version 0.1 in PyPI contains a code execution backdoor vulnerability (CVE-2022-31313). The vulnerability was discovered in May 2022 and is related to a malicious 'request' dependency included in the package (CVE Mitre, Bleeping Computer).

Technical details

The vulnerability stems from the inclusion of a malicious 'request' dependency (without 's') instead of the legitimate 'requests' Python module. The malicious package contains base64-encoded URLs pointing to malware files: 'check.so' (a Remote Access Trojan) and 'x.pyx' (an info-stealer). The info-stealing component is designed to harvest cookies and personal information from various web browsers including Chrome, Firefox, Yandex, and Brave (Bleeping Computer).

Impact

When exploited, the backdoor allows attackers to access sensitive user information, steal login credentials and passwords stored in web browsers. The compromised credentials could potentially be used to compromise other developer accounts, leading to further supply-chain attacks (Bleeping Computer).

Mitigation and workarounds

Users should ensure they are not using version 0.1 of the api-res-py package. The legitimate Python HTTP library is named 'requests' (with an 's'), and developers should verify they are using the correct package name in their dependencies (Bleeping Computer).

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-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

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