Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This is a fork of the standard library modules cgi
and cgitb
.
They are slated to be removed from the Python standard libary in
Python 3.13 by PEP-594_.
.. _PEP-594: https://peps.python.org/pep-0594/
Install the legacy-cgi
package from PyPI::
$ pip install legacy-cgi
The purpose of this fork is to support existing CGI scripts using these modules. Thus, compatibility is the primary goal.
Contributions are accepted, but should be focused on bug fixes instead of new features or major refactoring.
New applications should look at the WSGI_ ecosystem. There's a number of highly-polished web frameworks available, and it's significantly faster in a typical deployment given a new Python process does not need created for each request.
.. _WSGI: https://wsgi.readthedocs.io
See the official documentation for Python 3.12 and earlier for usage:
cgi module
_cgitb module
_.. _cgi module: https://docs.python.org/3.12/library/cgi.html .. _cgitb module: https://docs.python.org/3.12/library/cgitb.html
The modules are not renamed, so code written for Python 3.12 or earlier should work without modification with this package installed.
FAQs
Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594
We found that legacy-cgi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.