Malicious code in urlcraft (pypi)
Summary
MAL-2023-7781: Malicious code in urlcraft (PyPI). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Urlcraft is a Python package available on PyPI that provides utilities for working with URLs. It allows developers to parse, manipulate, and construct URLs easily. However, the package has been found to contain malicious code.
Vulnerability Detail
The urlcraft package from PyPI has been compromised by the EsqueleSquad group, who published nearly 6000 malicious PyPi and NPM packages. These packages execute spyware and information-stealing malware. The specific vulnerability in urlcraft allows attackers to execute arbitrary code on systems where the package is installed. This can lead to unauthorized access, data theft, and other malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall urlcraft
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is crucial to update the package to a secure version as soon as possible.
Conclusion
The urlcraft package from PyPI has been compromised by the EsqueleSquad group, leading to the inclusion of malicious code. It is crucial to update to a secure version of urlcraft and review your project's dependencies for any other malicious packages. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for urlcraft →
FAQ
You can check your project's dependencies and their versions by inspecting the requirements.txt or Pipfile.lock file. Look for the urlcraft package and verify if it is using the affected version.
The consequences of this vulnerability can be severe. Attackers can execute arbitrary code on the affected system, leading to unauthorized access, data theft, and other malicious activities. It is crucial to address this vulnerability promptly.
The malicious code has been identified and removed from the PyPI repository. However, it is essential to update to a secure version of urlcraft to ensure your project is not affected.
Yes, the EsqueleSquad group has published nearly 6000 malicious PyPi and NPM packages. It is recommended to review your project's dependencies and ensure none of them are from the malicious package list.
If you have further questions or need assistance with vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and support in addressing this issue.