Malicious code in strreplace (PyPI)
Summary
MAL-2023-6827: Malicious code in strreplace (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
strreplace is a Python package available on PyPI. It is used for string replacement operations in Python programs. The package provides various functions and methods to replace substrings within strings. However, the package has been found to contain malicious code.
Vulnerability Detail
The strreplace package 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 strreplace allows the execution of unauthorized code, potentially leading to data breaches, unauthorized access, and other security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall strreplace
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 remove the strreplace package and replace it with a secure alternative.
Conclusion
The strreplace package on PyPI has been found to contain malicious code. It is crucial to remove this package from your Python environment and replace it with a trusted alternative. Regularly updating packages and dependencies is essential to avoid using compromised versions. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for strreplace →
FAQ
strreplace is a Python package used for string replacement operations.
The strreplace package was compromised by the EsqueleSquad group, who published malicious versions of the package on PyPI.
The vulnerability in strreplace can lead to the execution of unauthorized code, which may result in data breaches, unauthorized access, and other security risks.
Yes, the recommended fix is to remove the strreplace package and replace it with a trusted alternative.
To prevent similar vulnerabilities, regularly update your packages and dependencies, and only use trusted sources for package installation.