Malicious code in urlcraft (pypi)

urlcraft Updated 02 Oct 2025

Summary

23/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7781: Malicious code in urlcraft (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback