PyPI: ctx

SFTY-20220524-34652

Safety legacy ID: pyup.io-48996

Ctx has been hijacked and replaced with malicious code that sends all your environment variables to a URL. https://www.reddit.com/r/Python/comments/uwhzkj/i_think_the_ctx_package_on_pypi_has_been_hacked https://github.com/advisories/GHSA-4g82-3jcr-q52w

Created at: Jul 14, 2026Updated at: Jul 14, 2026

Overview

Ctx has been hijacked and replaced with malicious code that sends all your environment variables to a URL. https://www.reddit.com/r/Python/comments/uwhzkj/i_think_the_ctx_package_on_pypi_has_been_hacked https://github.com/advisories/GHSA-4g82-3jcr-q52w

Advisory

Ctx has been hijacked and replaced with malicious code that sends all your environment variables to a URL. https://www.reddit.com/r/Python/comments/uwhzkj/i_think_the_ctx_package_on_pypi_has_been_hacked https://github.com/advisories/GHSA-4g82-3jcr-q52w

Affected Package

Affecting ctx package, versions>0

Also affects

---

How to Fix

We recommend updating ctx to the latest non-vulnerable version.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more