Malicious code in urlgrand (PyPI)
Summary
MAL-2023-7783: Malicious code in urlgrand (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
urlgrand is a package available on PyPI that provides functionality related to URLs. It is used to parse, manipulate, and generate URLs in Python applications. The package is vulnerable to a malicious code injection attack.
Vulnerability Detail
The vulnerability in urlgrand is due to the presence of malicious code in the package. This code was introduced in version 0 of the package and was discovered by the Checkmarx security team. The malicious code can execute spyware and information-stealing malware on the affected system. The code can be triggered when using certain functionalities of the package, potentially leading to unauthorized access to sensitive information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall urlgrand
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
In conclusion, the urlgrand package on PyPI is vulnerable to a malicious code injection attack. It is crucial to update the package to a secure version to mitigate the risk. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for urlgrand →
FAQ
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
No, updating the package is the recommended solution to mitigate the risk. The latest version of the package will have the necessary security patches to address the vulnerability.
The impact of this vulnerability can be severe, as it allows for the execution of spyware and information-stealing malware. This can lead to unauthorized access to sensitive information and compromise the security of the affected system.
This vulnerability was discovered by the Checkmarx security team.
For more information about this vulnerability, you can contact Checkmarx at supplychainsecurity@checkmarx.com or visit their website at https://bit.ly/checkmarx-malicious-packages.